Example #1
0
            /// <summary>
            /// Initializes a new instance of the <see cref="RawBlobStorageSnapshotStore"/> class using the specified container.
            /// </summary>
            public RawBlobStorageSnapshotStore(ILogger logger, IBlobStorageSnapshotStoreConnectionStringFactory blobStorageSnapshotStoreConnectionStringFactory)
                : base(logger)
            {
                GetContainerName  = blobStorageSnapshotStoreConnectionStringFactory.GetBaseContainerName;
                IsContainerPublic = () => false;
                GenerateFileName  = data => Path.Combine(data.AggregateId, string.Format("{0:D10}\\{1}", data.Version, data.EventId.ToString("N")));

                // ReSharper disable DoNotCallOverridableMethodsInConstructor
                Initialise(blobStorageSnapshotStoreConnectionStringFactory);
                // ReSharper restore DoNotCallOverridableMethodsInConstructor
            }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BlobStorageSnapshotStore"/> class using the specified container.
 /// </summary>
 public BlobStorageSnapshotStore(IConfigurationManager configurationManager, ISnapshotDeserialiser eventDeserialiser, ILogger logger, ICorrelationIdHelper correlationIdHelper, ISnapshotBuilder snapshotBuilder, IBlobStorageSnapshotStoreConnectionStringFactory blobStorageSnapshotStoreConnectionStringFactory)
     : base(configurationManager, eventDeserialiser, snapshotBuilder, logger, correlationIdHelper)
 {
     BlobStorageStore = new RawBlobStorageSnapshotStore(logger, blobStorageSnapshotStoreConnectionStringFactory);
 }