public AzureGatewayListProvider(ILoggerFactory loggerFactory, IOptions <AzureStorageGatewayOptions> options, IOptions <ClusterClientOptions> clusterClientOptions, IOptions <GatewayOptions> gatewayOptions) { this.loggerFactory = loggerFactory; this.clusterId = clusterClientOptions.Value.ClusterId; this.maxStaleness = gatewayOptions.Value.GatewayListRefreshPeriod; this.options = options.Value; }
protected override IGatewayListProvider CreateGatewayListProvider(ILogger logger) { var options = new AzureStorageGatewayOptions(); options.ConfigureTestDefaults(); return(new AzureGatewayListProvider(loggerFactory, Options.Create(options), this.clusterOptions, this.gatewayOptions)); }
protected override IGatewayListProvider CreateGatewayListProvider(ILogger logger) { var options = new AzureStorageGatewayOptions() { ConnectionString = this.connectionString }; return(new AzureGatewayListProvider(loggerFactory, Options.Create(options), this.clientOptions, this.gatewayOptions)); }