Beispiel #1
0
 public void Configure(object configuration, ISiloBuilder builder)
 {
     builder.UseAzureStorageClustering(options =>
     {
         var reader = new GlobalConfigurationReader(configuration);
         options.MaxStorageBusyRetries = reader.GetPropertyValue <int>("MaxStorageBusyRetries");
         options.ConnectionString      = reader.GetPropertyValue <string>("DataConnectionString");
     });
 }
 public void Configure(object configuration, IServiceCollection services)
 {
     services.UseAzureTableMembership(
         options =>
     {
         var reader = new GlobalConfigurationReader(configuration);
         options.MaxStorageBusyRetries = reader.GetPropertyValue <int>("MaxStorageBusyRetries");
         options.ConnectionString      = reader.GetPropertyValue <string>("DataConnectionString");
     });
 }
Beispiel #3
0
 public void Configure(object configuration, IServiceCollection services)
 {
     services.Configure((Action <AzureStorageClusteringOptions>)(options =>
     {
         var reader = new GlobalConfigurationReader(configuration);
         options.MaxStorageBusyRetries = reader.GetPropertyValue <int>("MaxStorageBusyRetries");
         options.ConnectionString      = reader.GetPropertyValue <string>("DataConnectionString");
     }));
     services.AddSingleton <IMembershipTable, AzureBasedMembershipTable>();
     IServiceCollection temp = services;
 }
Beispiel #4
0
        public void Configure(object configuration, ISiloHostBuilder builder)
        {
            var reader = new GlobalConfigurationReader(configuration);

            builder.UseConsulClustering(options =>
            {
                options.Address = new Uri(reader.GetPropertyValue <string>("DataConnectionString"));
            });
        }
        public void Configure(object configuration, IServiceCollection services)
        {
            var reader = new GlobalConfigurationReader(configuration);

            services.Configure <ConsulClusteringSiloOptions>(options => options.Address = new Uri(reader.GetPropertyValue <string>("DataConnectionString")));
            services.AddSingleton <IMembershipTable, ConsulBasedMembershipTable>();
        }
        public void ConfigureServices(object configuration, IServiceCollection services)
        {
            var reader = new GlobalConfigurationReader(configuration);

            services.UseConsulMembership(options => options.Address = new Uri(reader.GetPropertyValue <string>("DataConnectionString")));
        }
Beispiel #7
0
        public void Configure(object configuration, IServiceCollection services)
        {
            var reader = new GlobalConfigurationReader(configuration);

            services.UseDynamoDBMembership(options => options.ConnectionString = reader.GetPropertyValue <string>("DataConnectionString"));
        }