Пример #1
0
            /// <summary>
            /// Initializes a new instance of the <see cref="RawTableStorageEventStore"/> class using the specified container.
            /// </summary>
            public RawTableStorageEventStore(ILogger logger, ITableStorageStoreConnectionStringFactory tableStorageEventStoreConnectionStringFactory, bool isCorrelationIdTableStorageStore = false)
                : base(logger)
            {
                GetContainerName  = tableStorageEventStoreConnectionStringFactory.GetBaseContainerName;
                IsContainerPublic = () => false;

                IsCorrelationIdTableStorageStore = isCorrelationIdTableStorageStore;
                TableName = IsCorrelationIdTableStorageStore ? "EventStoreByCorrelationId" : "EventStore";

                // ReSharper disable DoNotCallOverridableMethodsInConstructor
                Initialise(tableStorageEventStoreConnectionStringFactory);
                // ReSharper restore DoNotCallOverridableMethodsInConstructor
            }
Пример #2
0
 protected override TableStorageEventStore <Guid> CreateDataStore(IEventBuilder <Guid> eventBuilder, IEventDeserialiser <Guid> eventDeserialiser, ILogger logger, ITableStorageStoreConnectionStringFactory tableStorageEventStoreConnectionStringFactory)
 {
     return(new Events.TableStorageEventStore <Guid>(eventBuilder, eventDeserialiser, logger, tableStorageEventStoreConnectionStringFactory));
 }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TableStorageEventStore{TAuthenticationToken}"/> class using the specified container.
 /// </summary>
 public TableStorageEventStore(IEventBuilder <TAuthenticationToken> eventBuilder, IEventDeserialiser <TAuthenticationToken> eventDeserialiser, ILogger logger, ITableStorageStoreConnectionStringFactory tableStorageEventStoreConnectionStringFactory)
     : base(eventBuilder, eventDeserialiser, logger, tableStorageEventStoreConnectionStringFactory, (logger1, tableStorageEventStoreConnectionStringFactory1, isCorrelationIdTableStorageStore) => new RawTableStorageEventStorer(logger1, tableStorageEventStoreConnectionStringFactory1, isCorrelationIdTableStorageStore))
 {
 }
Пример #4
0
 /// <summary>
 /// Initializes a new instance of the RawTableStorageEventStore class using the specified container.
 /// </summary>
 public RawTableStorageEventStorer(ILogger logger, ITableStorageStoreConnectionStringFactory tableStorageEventStoreConnectionStringFactory, bool isCorrelationIdTableStorageStore = false)
     : base(logger, tableStorageEventStoreConnectionStringFactory, isCorrelationIdTableStorageStore)
 {
 }
Пример #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TableStorageEventStore{TAuthenticationToken}"/> class using the specified container.
 /// </summary>
 public TableStorageEventStore(IEventBuilder <TAuthenticationToken> eventBuilder, IEventDeserialiser <TAuthenticationToken> eventDeserialiser, ILogger logger, ITableStorageStoreConnectionStringFactory tableStorageEventStoreConnectionStringFactory, Func <ILogger, ITableStorageStoreConnectionStringFactory, bool, RawTableStorageEventStore> createRawTableStorageEventStoreFunction = null)
     : base(eventBuilder, eventDeserialiser, logger)
 {
     if (createRawTableStorageEventStoreFunction == null)
     {
         createRawTableStorageEventStoreFunction = (logger1, tableStorageEventStoreConnectionStringFactory1, isCorrelationIdTableStorageStore) => new RawTableStorageEventStore(logger1, tableStorageEventStoreConnectionStringFactory1, isCorrelationIdTableStorageStore);
     }
     TableStorageStore = createRawTableStorageEventStoreFunction(logger, tableStorageEventStoreConnectionStringFactory, false);
     CorrelationIdTableStorageStore = createRawTableStorageEventStoreFunction(logger, tableStorageEventStoreConnectionStringFactory, true);
 }
 /// <summary>
 /// Create a <see cref="TableStorageEventStore{TAuthenticationToken}"/> ready for testing.
 /// </summary>
 protected virtual TableStorageEventStore <Guid> CreateEventStore(IEventBuilder <Guid> eventBuilder, IEventDeserialiser <Guid> eventDeserialiser, ILogger logger, ITableStorageStoreConnectionStringFactory tableStorageEventStoreConnectionStringFactory)
 {
     return(new TableStorageEventStore <Guid>(eventBuilder, eventDeserialiser, logger, tableStorageEventStoreConnectionStringFactory));
 }