Esempio n. 1
0
 public TestContext()
 {
     _evtStoreConfig = new SqlEventStoreConfiguration()
     {
         ConnectionString   = ConfigurationManager.ConnectionStrings["Tangram:SqlConnectionString"].ToString(),
         EventsTableName    = "events",
         SnapshotsTableName = "snapshots"
     };
 }
Esempio n. 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="SqlPersistence"/> class.
        /// </summary>
        /// <param name="messageQueueConfiguration">The <see cref="SqlMessageQueueConfiguration">configuration</see> for queued messages.</param>
        /// <param name="eventStoreConfiguration">The <see cref="SqlEventStoreConfiguration">configuration</see> for events.</param>
        /// <param name="sagaStorageConfiguration">The <see cref="SqlSagaStorageConfiguration">configuration</see> for sagas.</param>
        public SqlPersistence(
            SqlMessageQueueConfiguration messageQueueConfiguration,
            SqlEventStoreConfiguration eventStoreConfiguration,
            SqlSagaStorageConfiguration sagaStorageConfiguration)
        {
            Arg.NotNull(messageQueueConfiguration, nameof(messageQueueConfiguration));
            Arg.NotNull(eventStoreConfiguration, nameof(eventStoreConfiguration));
            Arg.NotNull(sagaStorageConfiguration, nameof(sagaStorageConfiguration));

            Configuration = new PersistenceConfiguration(messageQueueConfiguration, eventStoreConfiguration, sagaStorageConfiguration);
        }
Esempio n. 3
0
            /// <summary>
            /// Initializes a new instance of the <see cref="PersistenceConfiguration"/> class.
            /// </summary>
            /// <param name="messageQueueConfiguration">The <see cref="SqlMessageQueueConfiguration">configuration</see> for queued messages.</param>
            /// <param name="eventStoreConfiguration">The <see cref="SqlEventStoreConfiguration">configuration</see> for events.</param>
            /// <param name="sagaStorageConfiguration">The <see cref="SqlSagaStorageConfiguration">configuration</see> for sagas.</param>
            public PersistenceConfiguration(
                SqlMessageQueueConfiguration messageQueueConfiguration,
                SqlEventStoreConfiguration eventStoreConfiguration,
                SqlSagaStorageConfiguration sagaStorageConfiguration)
            {
                Arg.NotNull(messageQueueConfiguration, nameof(messageQueueConfiguration));
                Arg.NotNull(eventStoreConfiguration, nameof(eventStoreConfiguration));
                Arg.NotNull(sagaStorageConfiguration, nameof(sagaStorageConfiguration));

                Messages = messageQueueConfiguration;
                Events   = eventStoreConfiguration;
                Sagas    = sagaStorageConfiguration;
            }
Esempio n. 4
0
 internal EventDataDataReader(SqlEventStoreConfiguration configuration, IEnumerable <EventDescriptor <TKey> > events)
 {
     this.configuration = configuration;
     iterator           = events.GetEnumerator();
 }
Esempio n. 5
0
 public TokenVault(SqlEventStoreConfiguration eventStoreConfiguration)
 {
     this.eventStoreConfiguration = eventStoreConfiguration;
 }