コード例 #1
0
            /// <summary>
            /// Initializes a new instance of the <see cref="RawTableStorageSnapshotStore"/> class using the specified container.
            /// </summary>
            public RawTableStorageSnapshotStore(ILogger logger, ITableStorageSnapshotStoreConnectionStringFactory tableStorageSnapshotStoreConnectionStringFactory)
                : base(logger)
            {
                GetContainerName  = tableStorageSnapshotStoreConnectionStringFactory.GetBaseContainerName;
                IsContainerPublic = () => false;

                TableName = "SnapshotStore";

                // ReSharper disable DoNotCallOverridableMethodsInConstructor
                Initialise(tableStorageSnapshotStoreConnectionStringFactory);
                // ReSharper restore DoNotCallOverridableMethodsInConstructor
            }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the RawTableStorageSnapshotStorer class using the specified container.
 /// </summary>
 public RawTableStorageSnapshotStorer(ILogger logger, ITableStorageSnapshotStoreConnectionStringFactory tableStorageSnapshotStoreConnectionStringFactory)
     : base(logger, tableStorageSnapshotStoreConnectionStringFactory)
 {
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TableStorageSnapshotStore"/> class using the specified container.
 /// </summary>
 public TableStorageSnapshotStore(IConfigurationManager configurationManager, ISnapshotDeserialiser eventDeserialiser, ILogger logger, ICorrelationIdHelper correlationIdHelper, ISnapshotBuilder snapshotBuilder, ITableStorageSnapshotStoreConnectionStringFactory tableStorageSnapshotStoreConnectionStringFactory)
     : base(configurationManager, eventDeserialiser, logger, correlationIdHelper, snapshotBuilder, tableStorageSnapshotStoreConnectionStringFactory, (logger1, tableStorageSnapshotStoreConnectionStringFactory1) => new RawTableStorageSnapshotStorer(logger1, tableStorageSnapshotStoreConnectionStringFactory1))
 {
 }
コード例 #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TableStorageEventStore{TAuthenticationToken}"/> class using the specified container.
 /// </summary>
 public TableStorageSnapshotStore(IConfigurationManager configurationManager, ISnapshotDeserialiser eventDeserialiser, ILogger logger, ICorrelationIdHelper correlationIdHelper, ISnapshotBuilder snapshotBuilder, ITableStorageSnapshotStoreConnectionStringFactory tableStorageSnapshotStoreConnectionStringFactory, Func <ILogger, ITableStorageSnapshotStoreConnectionStringFactory, RawTableStorageSnapshotStore> createRawTableStorageSnapshotStoreFunction = null)
     : base(configurationManager, eventDeserialiser, snapshotBuilder, logger, correlationIdHelper)
 {
     if (createRawTableStorageSnapshotStoreFunction == null)
     {
         createRawTableStorageSnapshotStoreFunction = (logger1, tableStorageSnapshotStoreConnectionStringFactory1) => new RawTableStorageSnapshotStore(logger1, tableStorageSnapshotStoreConnectionStringFactory1);
     }
     TableStorageStore = createRawTableStorageSnapshotStoreFunction(logger, tableStorageSnapshotStoreConnectionStringFactory);
 }