コード例 #1
0
 public AzureTransactionLogStorage(SerializationManager serializationManager, IOptions <AzureTransactionLogOptions> configurationOptions,
                                   IOptions <AzureTransactionArchiveLogOptions> archiveOptions, IOptions <ClusterOptions> clusterOptions)
 {
     this.serializationManager = serializationManager;
     this.options                  = configurationOptions.Value;
     this.clusterOptions           = clusterOptions.Value;
     this.archiveLogOptions        = archiveOptions.Value;
     this.commitRecordPartitionKey = ArchivalRow.MakePartitionKey(this.clusterOptions.ServiceId);
 }
コード例 #2
0
 public CommitRow(ClusterOptions clusterOptions, long firstLSN)
 {
     // All entities are in the same partition for atomic read/writes.
     PartitionKey = ArchivalRow.MakePartitionKey(clusterOptions.ServiceId);
     RowKey       = MakeRowKey(firstLSN);
 }