Beispiel #1
0
        public static void UseMappingsActuator(IConfiguration configuration, IApiExplorer apiExplorer = null, ILoggerFactory loggerFactory = null)
        {
            var options = new MappingsOptions(configuration);
            var handler = new MappingsHandler(options, SecurityService, apiExplorer, CreateLogger <MappingsHandler>(loggerFactory));

            ConfiguredHandlers.Add(handler);
        }
Beispiel #2
0
        public static void UseMappingsActuator(IConfiguration configuration, IApiExplorer apiExplorer = null, ILoggerFactory loggerFactory = null)
        {
            var options = new MappingsEndpointOptions(configuration);

            _mgmtOptions.RegisterEndpointOptions(configuration, options);
            var ep      = new MappingsEndpoint(options, CreateLogger <MappingsEndpoint>(loggerFactory));
            var handler = new MappingsHandler(ep, SecurityServices, apiExplorer, _mgmtOptions, CreateLogger <MappingsHandler>(loggerFactory));

            ConfiguredHandlers.Add(handler);
        }