public AzureTablesEventStore(AzureTablesEventStoreConfig config) { var cloudStorageaccount = CloudStorageAccount.Parse(config.ConnectionString); var tableClient = cloudStorageaccount.CreateCloudTableClient(); commandsTable = tableClient.GetTableReference(config.CommandsTableName); eventsTable = tableClient.GetTableReference(config.EventsTableName); this.modelSerializer = config.ModelSerializer; }
public static DungeonServiceCollectionEx_step3_withAzureCreateTables AddAzureTablesEventSourcing(this DungeonServiceCollectionEx_step2 step, AzureTablesEventStoreConfig storeConfig) { step.AddEventSourcing(() => new AzureTablesEventStore(storeConfig)); return(new DungeonServiceCollectionEx_step3_withAzureCreateTables(step, storeConfig)); }
public DungeonServiceCollectionEx_step3_withAzureCreateTables(DungeonServiceCollectionEx_step self, AzureTablesEventStoreConfig storeConfig) : base(self) { this.storeConfig = storeConfig; }