コード例 #1
0
        public static MicroService WithGateway(this MicroService microservice, Action <GatewayConfiguration> configurator = null)
        {
            var configuration = new GatewayConfiguration();

            configurator?.Invoke(configuration);

            microservice.Configuration.Modules.Add(new GatewayExtensionsModule(configuration));
            return(microservice);
        }
コード例 #2
0
 public GatewayExtensionsModule(GatewayConfiguration configuration)
 {
     _configuration = configuration;
 }