/// <summary>Initializes a new instance of the <see cref="DataStorageSendMessageDecorator" /> class.</summary> /// <param name="handler">The handler.</param> /// <param name="tracer">The tracer.</param> /// <param name="headers">The headers.</param> /// <param name="connectionInformation">The connection information.</param> public DataStorageSendMessageDecorator(IDataStorageSendMessage handler, ActivitySource tracer, IHeaders headers, IConnectionInformation connectionInformation) { _handler = handler; _tracer = tracer; _headers = headers; _connectionInformation = connectionInformation; }
/// <summary> /// Initializes a new instance of the <see cref="SendMessages" /> class. /// </summary> /// <param name="sentMessageFactory">The sent message factory.</param> /// <param name="dataStorage">The data storage.</param> public SendMessages(ISentMessageFactory sentMessageFactory, IDataStorageSendMessage dataStorage) { Guard.NotNull(() => sentMessageFactory, sentMessageFactory); Guard.NotNull(() => dataStorage, dataStorage); _sentMessageFactory = sentMessageFactory; _dataStorage = dataStorage; }