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); }
public void OnServerConnection(object sender, EventArgs args) { Message readyMessage = new ReadyMessage(ObjectId.Empty); Send(BSON.Serialize <Message>(readyMessage)); }