Class WolfClientBuilderCommandsExtensions
Extension methods for WolfClientBuilder that enable easy creation together with commands.
Namespace: TehGM.Wolfringo
Assembly: Wolfringo.Commands.dll
Syntax
public static class WolfClientBuilderCommandsExtensions
Methods
| Improve this Doc View SourceWithCommands(WolfClientBuilder, Action<CommandsServiceBuilder>)
Adds CommandsService together with WolfClient, and allows configuration.
Declaration
public static WolfClientBuilder WithCommands(this WolfClientBuilder clientBuilder, Action<CommandsServiceBuilder> commandsBuilder)
Parameters
Type | Name | Description |
---|---|---|
WolfClientBuilder | clientBuilder | The WOLF client builder. |
Action<CommandsServiceBuilder> | commandsBuilder | Delegate that can be used to configure commands. |
Returns
Type | Description |
---|---|
WolfClientBuilder | Current WOLF Client builder instance. |
Remarks
When using this method, any calls to WithWolfClient<TImplementation>() will be overriden.