Beispiel #1
0
 public MsSqlMessageConsumer(
     MsSqlMessagingGatewayConfiguration msSqlMessagingGatewayConfiguration,
     string topic, IMsSqlMessagingGatewayConnectionFactory connectionFactory)
 {
     _topic = topic ?? throw new ArgumentNullException(nameof(topic));
     _sqlQ  = new MsSqlMessageQueue <Message>(msSqlMessagingGatewayConfiguration, connectionFactory);
 }
Beispiel #2
0
        private Publication _publication; // -- placeholder for future use

        public MsSqlMessageProducer(
            MsSqlMessagingGatewayConfiguration msSqlMessagingGatewayConfiguration,
            Publication publication = null)
        {
            _sqlQ        = new MsSqlMessageQueue <Message>(msSqlMessagingGatewayConfiguration);
            _publication = publication ?? new Publication()
            {
                MakeChannels = OnMissingChannel.Create
            };
        }
Beispiel #3
0
        private Publication _publication; //-- placeholder for future use

        public MsSqlMessageProducerFactory(
            MsSqlMessagingGatewayConfiguration msSqlMessagingGatewayConfiguration,
            Publication publication = null)
        {
            _msSqlMessagingGatewayConfiguration =
                msSqlMessagingGatewayConfiguration ?? throw new ArgumentNullException(nameof(msSqlMessagingGatewayConfiguration));
            _publication = publication ?? new Publication()
            {
                MakeChannels = OnMissingChannel.Create
            };
        }
Beispiel #4
0
        private Publication _publication; // -- placeholder for future use

        public MsSqlMessageProducer(
            MsSqlMessagingGatewayConfiguration msSqlMessagingGatewayConfiguration,
            Publication publication = null)
        {
            _sqlQ        = new MsSqlMessageQueue <Message>(msSqlMessagingGatewayConfiguration);
            _publication = publication ?? new Publication()
            {
                MakeChannels = OnMissingChannel.Create
            };
            MaxOutStandingMessages = _publication.MaxOutStandingMessages;
            MaxOutStandingCheckIntervalMilliSeconds = _publication.MaxOutStandingCheckIntervalMilliSeconds;
        }
Beispiel #5
0
 public MsSqlMessageProducerFactory(MsSqlMessagingGatewayConfiguration msSqlMessagingGatewayConfiguration)
 {
     _msSqlMessagingGatewayConfiguration = msSqlMessagingGatewayConfiguration ??
                                           throw new ArgumentNullException(
                                                     nameof(msSqlMessagingGatewayConfiguration));
 }
Beispiel #6
0
 public MsSqlMessageConsumer(
     MsSqlMessagingGatewayConfiguration msSqlMessagingGatewayConfiguration,
     string topic) : this(msSqlMessagingGatewayConfiguration, topic, new MsSqlMessagingGatewaySqlAuthConnectionFactory(msSqlMessagingGatewayConfiguration.ConnectionString))
 {
 }
Beispiel #7
0
 public MsSqlMessageProducer(MsSqlMessagingGatewayConfiguration msSqlMessagingGatewayConfiguration)
 {
     _sqlQ = new MsSqlMessageQueue <Message>(msSqlMessagingGatewayConfiguration);
 }
Beispiel #8
0
 public MsSqlMessageProducer(
     MsSqlMessagingGatewayConfiguration msSqlMessagingGatewayConfiguration,
     Publication publication = null) : this(msSqlMessagingGatewayConfiguration, new MsSqlMessagingGatewaySqlAuthConnectionFactory(msSqlMessagingGatewayConfiguration.ConnectionString), publication)
 {
 }