Пример #1
0
 public MappingsHandler(MappingsEndpoint endpoint, IEnumerable <ISecurityService> securityServices, IApiExplorer apiExplorer, IEnumerable <IManagementOptions> mgmtOptions, ILogger <MappingsHandler> logger = null)
     : base(securityServices, mgmtOptions, null, true, logger)
 {
     _options     = endpoint.Options;
     _endpoint    = endpoint;
     _apiExplorer = apiExplorer;
 }
 public MappingsEndpointMiddleware(
     RequestDelegate next,
     IMappingsOptions options,
     IRouteMappings routeMappings = null,
     IActionDescriptorCollectionProvider actionDescriptorCollectionProvider = null,
     IEnumerable <IApiDescriptionProvider> apiDescriptionProviders          = null,
     ILogger <MappingsEndpointMiddleware> logger = null)
     : base(logger: logger)
 {
     _next          = next;
     _options       = options;
     _routeMappings = routeMappings;
     _actionDescriptorCollectionProvider = actionDescriptorCollectionProvider;
     _apiDescriptionProviders            = apiDescriptionProviders;
 }
 public MappingsEndpointOwinMiddleware(OwinMiddleware next, IMappingsOptions options, IApiExplorer apiExplorer, ILogger logger = null)
     : base(next, logger: logger)
 {
     _options     = options;
     _apiExplorer = apiExplorer;
 }
 public MappingsEndpointOwinMiddleware(OwinMiddleware next, IMappingsOptions options, IEnumerable <IManagementOptions> mgmtOptions, IApiExplorer apiExplorer, ILogger logger = null)
     : base(next, mgmtOptions, logger: logger)
 {
     _options     = options;
     _apiExplorer = apiExplorer;
 }
Пример #5
0
 public MappingsEndpoint(IMappingsOptions options, ILogger <MappingsEndpoint> logger = null)
     : base(options)
 {
     _logger = logger;
 }
Пример #6
0
 public MappingsHandler(MappingsOptions options, IEnumerable <ISecurityService> securityServices, IApiExplorer apiExplorer, ILogger <MappingsHandler> logger = null)
     : base(securityServices, null, true, logger)
 {
     _options     = options;
     _apiExplorer = apiExplorer;
 }