Exemplo n.º 1
0
        void Start()
        {
            var queue = new AmqpQueueSubscription(QueueName, false, HandleQueueMessageReceived);

            AmqpClient.Subscribe(queue);
            Debug.Log("Subscribe");

            _baggageGarage  = Map.GetLocation("BaggageGarage").Value;
            _busGarage      = Map.GetLocation("BusGarage").Value;
            _followMeGarage = Map.GetLocation("FollowMeGarage").Value;
            _fuelGarage     = Map.GetLocation("FuelGarage").Value;
        }
        // Constructor
        public AmqpQueueReceivedMessage(AmqpQueueSubscription subscription, IAmqpReceivedMessage message)
        {
            if (subscription == null)
            {
                throw new ArgumentNullException("subscription");
            }
            if (message == null)
            {
                throw new ArgumentNullException("message");
            }

            Subscription = subscription;
            Message      = message;
        }