Exemple #1
0
 public void Configure(ISiloBuilder hostBuilder)
 {
     hostBuilder
     .AddAzureTableGrainStorage("AzureStore", builder => builder.Configure <IOptions <ClusterOptions> >((options, silo) =>
     {
         options.ConnectionString = TestDefaultConfiguration.DataConnectionString;
     }));
 }
Exemple #2
0
 public void Configure(ISiloBuilder hostBuilder)
 {
     hostBuilder
     .AddAzureTableGrainStorage("GrainStorageForTest", builder => builder.Configure <IOptions <ClusterOptions> >((options, silo) =>
     {
         options.ConfigureTestDefaults();
         options.DeleteStateOnClear = true;
     }));
 }
Exemple #3
0
 public void Configure(ISiloBuilder hostBuilder)
 {
     hostBuilder.ConfigureLogging(builder =>
     {
         builder.AddFilter("Orleans.Runtime.Catalog", LogLevel.Debug);
         builder.AddFilter("Orleans.Runtime.Dispatcher", LogLevel.Trace);
         builder.AddFilter("Orleans.Runtime.GrainDirectory.LocalGrainDirectory", LogLevel.Trace);
         builder.AddFilter("Orleans.Runtime.GrainDirectory.GlobalSingleInstanceRegistrar", LogLevel.Trace);
         builder.AddFilter("Orleans.Runtime.LogConsistency.ProtocolServices", LogLevel.Trace);
         builder.AddFilter("Orleans.Storage.MemoryStorageGrain", LogLevel.Debug);
     });
     hostBuilder.AddAzureTableGrainStorage("AzureStore", builder => builder.Configure <IOptions <ClusterOptions> >((options, silo) =>
     {
         options.ConnectionString = TestDefaultConfiguration.DataConnectionString;
     }));
     hostBuilder.AddAzureBlobGrainStorage("PubSubStore", (AzureBlobStorageOptions options) =>
     {
         options.ConnectionString = TestDefaultConfiguration.DataConnectionString;
     });
 }
 public void Configure(ISiloBuilder hostBuilder)
 {
     hostBuilder
     .AddAzureTableGrainStorage("GrainStorageForTest", builder => builder.Configure <IOptions <ClusterOptions> >((options, silo) =>
     {
         options.ConnectionString   = TestDefaultConfiguration.DataConnectionString;
         options.DeleteStateOnClear = true;
     }))
     .AddAzureTableGrainStorage("AzureStore1", builder => builder.Configure <IOptions <ClusterOptions> >((options, silo) =>
     {
         options.ConnectionString = TestDefaultConfiguration.DataConnectionString;
     }))
     .AddAzureTableGrainStorage("AzureStore2", builder => builder.Configure <IOptions <ClusterOptions> >((options, silo) =>
     {
         options.ConnectionString = TestDefaultConfiguration.DataConnectionString;
     }))
     .AddAzureTableGrainStorage("AzureStore3", builder => builder.Configure <IOptions <ClusterOptions> >((options, silo) =>
     {
         options.ConnectionString = TestDefaultConfiguration.DataConnectionString;
     }))
     .AddMemoryGrainStorage("MemoryStore");
 }
 /// <summary>
 /// Configure silo to use azure table storage as the default grain storage.
 /// </summary>
 public static ISiloBuilder AddAzureTableGrainStorageAsDefault(this ISiloBuilder builder, Action <OptionsBuilder <AzureTableStorageOptions> > configureOptions = null)
 {
     return(builder.AddAzureTableGrainStorage(ProviderConstants.DEFAULT_STORAGE_PROVIDER_NAME, configureOptions));
 }