Exemplo n.º 1
0
        private void UpdateQueueWithFullUpdate(byte[] data)
        {
            if (data == null || data.Length == 0)
            {
                throw new ArgumentException("The specified data cannot be null or empty", "data");
            }

            lock (ProcessQueue)
            {
                ProcessQueue = PrioritisedQueueSerialiser.Deserialise(data);
            }
        }
Exemplo n.º 2
0
        private void SendFullQueueUpdate(IPAddress ip)
        {
            if (ip == null)
            {
                throw new ArgumentException("The specified ip is not valid", "ip");
            }

            IObservableQueue <ClientProcess> temp = ProcessQueue;

            var msg = new InterNodeCommunicationMessage {
                Data = PrioritisedQueueSerialiser.Serialise(temp), IsLocalOnly = true, MessageType = InterNodeMessageType.FullQueueUpdateReceived
            };

            SendToNode(ip, InterNodeCommunicationMessageSerialiser.Serialise(msg));
        }