Base class for a transport that is being used to send messages
Inheritance: IReadonly, ISetReadonly
 /// <summary>
 /// Initializes a new instance of the <see cref="QueueRpcConfiguration" /> class.
 /// </summary>
 /// <param name="transportConfigurationReceive">The transport configuration receive.</param>
 /// <param name="transportConfigurationSend">The transport configuration send.</param>
 /// <param name="messageExpirationConfiguration">The message expiration configuration.</param>
 /// <param name="headers">The headers.</param>
 public QueueRpcConfiguration(TransportConfigurationReceive transportConfigurationReceive, 
     TransportConfigurationSend transportConfigurationSend, 
     IMessageExpirationConfiguration messageExpirationConfiguration, 
     IHeaders headers)
     : base(transportConfigurationSend, transportConfigurationReceive, headers)
 {
     Guard.NotNull(() => messageExpirationConfiguration, messageExpirationConfiguration);
     MessageExpiration = messageExpirationConfiguration;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="QueueRpcConfiguration" /> class.
 /// </summary>
 /// <param name="transportConfigurationReceive">The transport configuration receive.</param>
 /// <param name="transportConfigurationSend">The transport configuration send.</param>
 /// <param name="messageExpirationConfiguration">The message expiration configuration.</param>
 /// <param name="headers">The headers.</param>
 public QueueRpcConfiguration(TransportConfigurationReceive transportConfigurationReceive,
                              TransportConfigurationSend transportConfigurationSend,
                              IMessageExpirationConfiguration messageExpirationConfiguration,
                              IHeaders headers)
     : base(transportConfigurationSend, transportConfigurationReceive, headers)
 {
     Guard.NotNull(() => messageExpirationConfiguration, messageExpirationConfiguration);
     MessageExpiration = messageExpirationConfiguration;
 }
Beispiel #3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="QueueConfigurationRpc" /> class.
        /// </summary>
        /// <param name="transportConfigurationSend">The transport configuration send.</param>
        /// <param name="transportConfigurationReceive">The transport configuration receive.</param>
        /// <param name="headerNames">The header names.</param>
        public QueueConfigurationRpc(TransportConfigurationSend transportConfigurationSend,
                                     TransportConfigurationReceive transportConfigurationReceive,
                                     IHeaders headerNames)
        {
            Guard.NotNull(() => transportConfigurationSend, transportConfigurationSend);
            Guard.NotNull(() => transportConfigurationReceive, transportConfigurationReceive);
            Guard.NotNull(() => headerNames, headerNames);

            TransportConfigurationSend    = transportConfigurationSend;
            TransportConfigurationReceive = transportConfigurationReceive;
            HeaderNames = headerNames;
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="QueueConfigurationRpc" /> class.
        /// </summary>
        /// <param name="transportConfigurationSend">The transport configuration send.</param>
        /// <param name="transportConfigurationReceive">The transport configuration receive.</param>
        /// <param name="headerNames">The header names.</param>
        public QueueConfigurationRpc(TransportConfigurationSend transportConfigurationSend, 
            TransportConfigurationReceive transportConfigurationReceive,
            IHeaders headerNames)
        {
            Guard.NotNull(() => transportConfigurationSend, transportConfigurationSend);
            Guard.NotNull(() => transportConfigurationReceive, transportConfigurationReceive);
            Guard.NotNull(() => headerNames, headerNames);

            TransportConfigurationSend = transportConfigurationSend;
            TransportConfigurationReceive = transportConfigurationReceive;
            HeaderNames = headerNames;
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="QueueConfigurationSend" /> class.
        /// </summary>
        /// <param name="transportConfiguration">The transport configuration.</param>
        /// <param name="headerNames">The header names.</param>
        /// <param name="configuration">The configuration.</param>
        /// <param name="timeConfiguration">The time configuration.</param>
        public QueueConfigurationSend(TransportConfigurationSend transportConfiguration, 
            IHeaders headerNames,
            IConfiguration configuration,
            BaseTimeConfiguration timeConfiguration)
        {
            Guard.NotNull(() => transportConfiguration, transportConfiguration);
            Guard.NotNull(() => headerNames, headerNames);
            Guard.NotNull(() => configuration, configuration);
            Guard.NotNull(() => timeConfiguration, timeConfiguration);

            TransportConfiguration = transportConfiguration;
            HeaderNames = headerNames;
            AdditionalConfiguration = configuration;
            TimeConfiguration = timeConfiguration;
        }
Beispiel #6
0
        /// <summary>
        /// Initializes a new instance of the <see cref="QueueConfigurationSend" /> class.
        /// </summary>
        /// <param name="transportConfiguration">The transport configuration.</param>
        /// <param name="headerNames">The header names.</param>
        /// <param name="configuration">The configuration.</param>
        /// <param name="timeConfiguration">The time configuration.</param>
        /// <param name="policies">The policies.</param>
        public QueueConfigurationSend(TransportConfigurationSend transportConfiguration,
                                      IHeaders headerNames,
                                      IConfiguration configuration,
                                      BaseTimeConfiguration timeConfiguration,
                                      IPolicies policies)
        {
            Guard.NotNull(() => transportConfiguration, transportConfiguration);
            Guard.NotNull(() => headerNames, headerNames);
            Guard.NotNull(() => configuration, configuration);
            Guard.NotNull(() => timeConfiguration, timeConfiguration);
            Guard.NotNull(() => policies, policies);

            TransportConfiguration  = transportConfiguration;
            HeaderNames             = headerNames;
            AdditionalConfiguration = configuration;
            TimeConfiguration       = timeConfiguration;
            Policies = policies;
        }