private HttpOptionsBuilder(IOptionsContext context) { Guard.EnsureNotNull(context, nameof(context)); WithCommandPath(x => "/commands") .WithPipeline(context.ConfigurePipeline) .WithPostProcessPipeline(context.PostProcessPipelineStage); if (context.CommandRegistry != null) { WithCommandRegistry(x => context.CommandRegistry); } if (context.HandlerFactory != null) { WithHandlerFactory(x => context.HandlerFactory); } }
private HttpOptionsBuilder(IOptionsContext context) { Guard.EnsureNotNull(context, nameof(context)); WithCommandPath(x => "/commands") .WithPipeline(context.ConfigurePipeline) .WithPostProcessPipeline(context.PostProcessPipelineStage); if (context.CommandRegistry != null) { WithCommandRegistry(x => context.CommandRegistry); } if (context.HandlerFactory != null) { WithHandlerFactory(x => context.HandlerFactory); } }
internal static HttpOptionsBuilder FromContext(IOptionsContext context) { return(new HttpOptionsBuilder(context)); }
internal static HttpOptionsBuilder FromContext(IOptionsContext context) { return new HttpOptionsBuilder(context); }