EventStoreOnlyPersistence(
     SqlMessageQueueConfiguration messageQueueConfiguration,
     SqlEventStoreConfiguration eventStoreConfiguration,
     SqlSagaStorageConfiguration sagaStorageConfiguration)
     : base(messageQueueConfiguration, eventStoreConfiguration, sagaStorageConfiguration)
 {
 }
Пример #2
0
        public SagaPredicate(SqlSagaStorageConfiguration configuration, string propertyName, object propertyValue)
        {
            var type = typeof(TData);

            this.configuration = configuration;
            this.propertyName  = propertyName;
            this.propertyValue = propertyValue;
            dataType           = $"{type.FullName}, {type.Assembly.GetName().Name}";
        }
Пример #3
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);
        }
Пример #4
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;
            }