Exemplo n.º 1
0
        public void Send(Message message)
        {
            if (message is RecordMessage)
            {
                RecordMessage rm = message as RecordMessage;
                StopTrackingJob(rm.htmlRecord.recordid);
            }

            byte[] bson = BSON.Serialize <Message>(message);
            Send(bson);
        }
Exemplo n.º 2
0
        public void OnServerConnection(object sender, EventArgs args)
        {
            Message readyMessage = new ReadyMessage(ObjectId.Empty);

            Send(BSON.Serialize <Message>(readyMessage));
        }