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); }
public GatewayExtensionsModule(GatewayConfiguration configuration) { _configuration = configuration; }