Table of Contents

Interface IZ21CommandFactory

Namespace
Z21.Core.Command
Assembly
Z21.Client.dll

Constructs IZ21Command instances, supplying their required encoding services and binding any remaining constructor arguments. Adding a new command requires no change here.

public interface IZ21CommandFactory

Methods

Create<TCommand>(params object[])

Creates a command of type TCommand; encoding services are supplied automatically and args fills the remaining constructor parameters.

TCommand Create<TCommand>(params object[] args) where TCommand : IZ21Command

Parameters

args object[]

Returns

TCommand

Type Parameters

TCommand