Exemplo n.º 1
0
        private void SetupOutboundQueue(AzureCloudServiceSettings settings)
        {
            var options = new QueueSenderOptions
            {
                NamespaceName = NamespaceName,
                QueueName     = "outbound-" + settings.ControllerId,
                Authorization = settings.OutboundQueueAuthorization
            };

            _outboundQueue = new QueueSender(options, _log);
        }
Exemplo n.º 2
0
        private void SetupInboundQueue(AzureCloudServiceSettings settings)
        {
            var options = new QueueReceiverOptions
            {
                NamespaceName = NamespaceName,
                QueueName     = "inbound-" + settings.ControllerId,
                Authorization = settings.InboundQueueAuthorization
            };

            _inboundQueue = new QueueReceiver(options, _log);
            _inboundQueue.MessageReceived += DistpachMessage;
            _inboundQueue.Enable();
        }