Esempio n. 1
0
 /// <summary>
 /// Configure silo to use AWS DynamoDB storage as the default grain storage.
 /// </summary>
 public static ISiloBuilder AddDynamoDBGrainStorageAsDefault(this ISiloBuilder builder, Action <OptionsBuilder <DynamoDBStorageOptions> > configureOptions = null)
 {
     return(builder.AddDynamoDBGrainStorage(ProviderConstants.DEFAULT_STORAGE_PROVIDER_NAME, configureOptions));
 }
 public void Configure(ISiloBuilder hostBuilder)
 {
     hostBuilder.AddMemoryGrainStorage("MemoryStore");
     hostBuilder.AddMemoryGrainStorage("test1");
     hostBuilder.AddDynamoDBGrainStorage("DDBStore", options => options.Service = AWSTestConstants.DynamoDbService);
 }