Pip-Services-Commons-Dotnet
Public Member Functions | List of all members
PipServices3.Commons.Commands.ICommandable Interface Reference

An interface for commandable objects, which are part of the command design pattern. The commandable object exposes its functonality as commands and events grouped into a CommandSet. This interface is typically implemented by controllers and is used to auto generate external interfaces. More...

Public Member Functions

CommandSet GetCommandSet ()
 Gets a command set with all supported commands and events. More...
 

Detailed Description

An interface for commandable objects, which are part of the command design pattern. The commandable object exposes its functonality as commands and events grouped into a CommandSet. This interface is typically implemented by controllers and is used to auto generate external interfaces.

public class MyDataController: ICommandable, IMyDataController
{
private MyDataCommandSet _commandSet;
public CommandSet getCommandSet()
{
if (this._commandSet == null)
this._commandSet = new MyDataCommandSet(this);
return this._commandSet;
}
...
}

See CommandSet

See CommandSet examples

Member Function Documentation

◆ GetCommandSet()

CommandSet PipServices3.Commons.Commands.ICommandable.GetCommandSet ( )

Gets a command set with all supported commands and events.

Returns
a command set with commands and events.

See CommandSet


The documentation for this interface was generated from the following file: