protected override IGatewayListProvider CreateGatewayListProvider(ILogger logger, string accountEndpoint, string accountKey) { var httpHandler = new HttpClientHandler() { ServerCertificateCustomValidationCallback = (req, cert, chain, errors) => true }; var dbClient = new CosmosClient( accountEndpoint, accountKey, new CosmosClientOptions { ConnectionMode = ConnectionMode.Gateway } ); var options = new CosmosDBGatewayOptions() { Client = dbClient, DB = "OrleansMBRTest" }; return(new CosmosDBGatewayListProvider(this.loggerFactory, Options.Create(options), Options.Create(new ClusterOptions { ClusterId = this.clusterId }), Options.Create(new GatewayOptions()))); }
protected override IGatewayListProvider CreateGatewayListProvider(ILogger logger, string accountEndpoint, string accountKey) { var options = new CosmosDBGatewayOptions() { AccountEndpoint = accountEndpoint, AccountKey = accountKey, ConnectionMode = Microsoft.Azure.Documents.Client.ConnectionMode.Gateway, DB = "OrleansMBRTest" }; return(new CosmosDBGatewayListProvider(this.loggerFactory, Options.Create(options), Options.Create(new ClusterOptions { ClusterId = this.clusterId }), Options.Create(new GatewayOptions()))); }
protected override IGatewayListProvider CreateGatewayListProvider(ILogger logger) { var options = new CosmosDBGatewayOptions() { AccountEndpoint = "https://localhost:8081", AccountKey = "C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw==", ConnectionMode = Microsoft.Azure.Documents.Client.ConnectionMode.Gateway, DB = "OrleansMBRTest" }; return(new CosmosDBGatewayListProvider(loggerFactory, Options.Create(options), Options.Create(new ClusterOptions { ClusterId = this.clusterId }), Options.Create(new GatewayOptions()))); }