public AzureTablesSnapshotStore(AzureTablesSnapshotsConfig config)
        {
            var cloudStorageaccount = CloudStorageAccount.Parse(config.ConnectionString);
            var tableClient         = cloudStorageaccount.CreateCloudTableClient();

            snapshotsTable = tableClient.GetTableReference(config.SnapshotsTableName);

            this.modelSerializer = config.ModelSerializer;
        }
Exemple #2
0
 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));
 }
Exemple #3
0
 public DungeonServiceCollectionEx_step4_withAzureCreateTables(DungeonServiceCollectionEx_step self, AzureTablesSnapshotsConfig storeConfig) : base(self)
 {
     this.storeConfig = storeConfig;
 }