EventStoreOnlyPersistence( SqlMessageQueueConfiguration messageQueueConfiguration, SqlEventStoreConfiguration eventStoreConfiguration, SqlSagaStorageConfiguration sagaStorageConfiguration) : base(messageQueueConfiguration, eventStoreConfiguration, sagaStorageConfiguration) { }
/// <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); }
/// <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; }