/// <summary>
 /// Enable the feature to create feature-flag like scopes to allow specific users to specific
 /// commands.
 /// </summary>
 public static CommandPipelineBuilder UseScopes(this CommandPipelineBuilder builder)
 {
     return(builder.UseStage(
                new ScopePipelineStage(builder.Services.GetService <IScopeService>())));
 }
Beispiel #2
0
 /// <summary>
 /// Allows you to use FIFO-like argument readers. Used in other packages as a dependency. With
 /// non-default providers if you prefer overriding default implementation.
 /// </summary>
 public static CommandPipelineBuilder UseArgumentPack(
     this CommandPipelineBuilder builder, ArgumentParseProvider provider)
 {
     return(builder.UseStage(new ArgumentPackBuilder(provider)));
 }