Wolfringo Wolfringo
Wolfringo Wolfringo
Wolfringo (c) 2020 TehGM
DocFX, DiscordFX theme.
Search Results for

    Class WolfClientBuilderCommandsExtensions

    Extension methods for WolfClientBuilder that enable easy creation together with commands.

    Inheritance
    System.Object
    WolfClientBuilderCommandsExtensions
    Namespace: TehGM.Wolfringo
    Assembly: Wolfringo.Commands.dll
    Syntax
    public static class WolfClientBuilderCommandsExtensions

    Methods

    | Improve this Doc View Source

    WithCommands(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.

    System.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.