public CloudFoundrySecurityMiddleware(RequestDelegate next, ICloudFoundryOptions options, ILogger <CloudFoundrySecurityMiddleware> logger) { _next = next; _logger = logger; _options = options; _base = new SecurityBase(options, logger); }
public CloudFoundrySecurityMiddleware(RequestDelegate next, ICloudFoundryOptions options, CloudFoundryManagementOptions mgmtOptions, ILogger <CloudFoundrySecurityMiddleware> logger = null) { _next = next; _logger = logger; _options = options; _mgmtOptions = mgmtOptions; _base = new SecurityBase(options, _mgmtOptions, logger); }
public CloudFoundrySecurityMiddleware(RequestDelegate next, ICloudFoundryOptions options, IEnumerable <IManagementOptions> mgmtOptions, ILogger <CloudFoundrySecurityMiddleware> logger = null) { _next = next; _logger = logger; _options = options; _mgmtOptions = mgmtOptions?.OfType <CloudFoundryManagementOptions>().SingleOrDefault(); _base = new SecurityBase(options, _mgmtOptions, logger); }