public AzureTablesSnapshotStore(AzureTablesSnapshotsConfig config) { var cloudStorageaccount = CloudStorageAccount.Parse(config.ConnectionString); var tableClient = cloudStorageaccount.CreateCloudTableClient(); snapshotsTable = tableClient.GetTableReference(config.SnapshotsTableName); this.modelSerializer = config.ModelSerializer; }
public static DungeonServiceCollectionEx_step4_withAzureCreateTables WithAzureTablesSnapshots(this DungeonServiceCollectionEx_step3 step, AzureTablesSnapshotsConfig storeConfig, Action <SnapshotConfiguration> cfg) { step.WithSnapshots(() => new AzureTablesSnapshotStore(storeConfig), cfg); return(new DungeonServiceCollectionEx_step4_withAzureCreateTables(step, storeConfig)); }
public DungeonServiceCollectionEx_step4_withAzureCreateTables(DungeonServiceCollectionEx_step self, AzureTablesSnapshotsConfig storeConfig) : base(self) { this.storeConfig = storeConfig; }