public void Report(ResourceMessage resourceMessage) { using (var memoryStream = new MemoryStream()) { using (var writer = new BsonDataWriter(memoryStream)) { var serializer = new JsonSerializer(); serializer.Serialize(writer, resourceMessage); Server.WebSocketServices.Broadcast(memoryStream.ToArray()); } } }
internal ResourceMessageEventArgs(ResourceMessage resourceMessage) { ResourceMessage = resourceMessage; }