예제 #1
0
        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;
        }
예제 #2
0
 public static DungeonServiceCollectionEx_step3_withAzureCreateTables AddAzureTablesEventSourcing(this DungeonServiceCollectionEx_step2 step, AzureTablesEventStoreConfig storeConfig)
 {
     step.AddEventSourcing(() => new AzureTablesEventStore(storeConfig));
     return(new DungeonServiceCollectionEx_step3_withAzureCreateTables(step, storeConfig));
 }
예제 #3
0
 public DungeonServiceCollectionEx_step3_withAzureCreateTables(DungeonServiceCollectionEx_step self, AzureTablesEventStoreConfig storeConfig) : base(self)
 {
     this.storeConfig = storeConfig;
 }