예제 #1
0
        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);
            }
        }
예제 #2
0
        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);
            }
        }
예제 #3
0
 internal static HttpOptionsBuilder FromContext(IOptionsContext context)
 {
     return(new HttpOptionsBuilder(context));
 }
예제 #4
0
 internal static HttpOptionsBuilder FromContext(IOptionsContext context)
 {
     return new HttpOptionsBuilder(context);
 }