Ejemplo n.º 1
0
 protected BaseTopicReceiver(ConnectionSettings connectionSettings, string topicName, string subscriptionName, ILogger logger)
 {
     _connectionSettings = connectionSettings;
     _subscriptionName   = subscriptionName;
     ChannelName         = topicName;
     _client             = new SubscriptionClient(connectionSettings.ConnectionString, topicName, subscriptionName);
     _channel            = new ChannelReceiver <TMessage>(_client, v => ProcessMessage(v), logger);
 }
Ejemplo n.º 2
0
 protected BaseQueueReceiver(ConnectionSettings connectionSettings, string queueName, ILogger logger)
 {
     ChannelName = queueName;
     _client     = new QueueClient(connectionSettings.ConnectionString, queueName);
     _channel    = new ChannelReceiver <TMessage>(_client, v => ProcessMessage(v), logger);
 }