Beispiel #1
0
 public void ConfigureServices(object configuration, IServiceCollection services)
 {
     services.UseAdoNetlGatewayListProvider(options =>
     {
         var reader = new ClientConfigurationReader(configuration);
         options.ConnectionString = reader.GetPropertyValue <string>("DataConnectionString");
         options.AdoInvariant     = reader.GetPropertyValue <string>("AdoInvariant");
     });
 }
 public void ConfigureServices(object configuration, IServiceCollection services)
 {
     services.Configure <AdoNetClusteringClientOptions>(
         options =>
     {
         var reader = new ClientConfigurationReader(configuration);
         options.ConnectionString = reader.GetPropertyValue <string>("DataConnectionString");
         options.AdoInvariant     = reader.GetPropertyValue <string>("AdoInvariant");
     });
     services.AddSingleton <IGatewayListProvider, AdoNetGatewayListProvider>();
 }
Beispiel #3
0
 /// <inheritdoc/>
 public void ConfigureServices(object configuration, IServiceCollection services)
 {
     services.UseConsulGatewayListProvider(options =>
     {
         var reader      = new ClientConfigurationReader(configuration);
         options.Address = new Uri(reader.GetPropertyValue <string>("DataConnectionString"));
     });
 }
 /// <inheritdoc/>
 public void ConfigureServices(object configuration, IServiceCollection services)
 {
     services.UseDynamoDBGatewayListProvider(options =>
     {
         var reader = new ClientConfigurationReader(configuration);
         ParseDataConnectionString(reader.GetPropertyValue <string>("DataConnectionString"), options);
     });
 }
Beispiel #5
0
 /// <inheritdoc/>
 public void ConfigureServices(object configuration, IServiceCollection services)
 {
     services.Configure <AzureStorageGatewayOptions>(
         options =>
     {
         var reader = new ClientConfigurationReader(configuration);
         options.ConnectionString = reader.GetPropertyValue <string>("DataConnectionString");
     });
     services.AddSingleton <IGatewayListProvider, AzureGatewayListProvider>();
 }
Beispiel #6
0
 /// <inheritdoc/>
 public void ConfigureServices(object configuration, IServiceCollection services)
 {
     services.Configure <ConsulClusteringClientOptions>(
         options =>
     {
         var reader      = new ClientConfigurationReader(configuration);
         options.Address = new Uri(reader.GetPropertyValue <string>("DataConnectionString"));
     });
     services.AddSingleton <IGatewayListProvider, ConsulGatewayListProvider>();
 }
        /// <inheritdoc/>
        public void ConfigureServices(object configuration, IServiceCollection services)
        {
            services.Configure <DynamoDBClusteringClientOptions>(
                options =>
            {
                var reader = new ClientConfigurationReader(configuration);
                ParseDataConnectionString(reader.GetPropertyValue <string>("DataConnectionString"), options);
            });

            services.AddSingleton <IGatewayListProvider, DynamoDBGatewayListProvider>();
        }