Esempio n. 1
0
 private GlobalCacheServiceConfiguration CreateGlobalCacheServiceConfiguration()
 {
     return(new GlobalCacheServiceConfiguration()
     {
         EnableBackgroundRestoreCheckpoint = DistributedContentSettings.GlobalCacheBackgroundRestore,
         MaxOperationConcurrency = DistributedContentSettings.MetadataStoreMaxOperationConcurrency,
         MaxOperationQueueLength = DistributedContentSettings.MetadataStoreMaxOperationQueueLength,
         CheckpointMaxAge = DistributedContentSettings.ContentMetadataCheckpointMaxAge?.Value,
         MaxEventParallelism = RedisContentLocationStoreConfiguration.EventStore.MaxEventProcessingConcurrency,
         MasterLeaseStaleThreshold = DateTimeUtilities.Multiply(RedisContentLocationStoreConfiguration.Checkpoint.MasterLeaseExpiryTime, 0.5),
         PersistentEventStorage = new BlobEventStorageConfiguration()
         {
             Credentials = Arguments.Secrets.GetStorageCredentials(new[] { DistributedContentSettings.ContentMetadataBlobSecretName }).First(),
             FolderName = "events" + DistributedContentSettings.KeySpacePrefix,
             ContainerName = DistributedContentSettings.ContentMetadataLogBlobContainerName,
         },
         CentralStorage = RedisContentLocationStoreConfiguration.CentralStore with
         {
             ContainerName = DistributedContentSettings.ContentMetadataCentralStorageContainerName
         },
 public BlobWriteAheadEventStorage(BlobEventStorageConfiguration configuration)
     : base(configuration)
 {
 }