public void Flush() { var tags = new RdlTagCollection(); lock (_sendQueue) { while (_sendQueue.Count > 0) { tags.Add(_sendQueue.Dequeue()); } } if (tags.Count > 0) { var data = tags.ToBytes(); //Logger.LogDebug("SERVER: Sending tags to client {0}: {1}", this.Client.UserName, tags); Logger.LogDebug("SERVER: Sending {0} tags for a total of {1} bytes to the client.", tags.Count, data.Length); Send(data); } }
public static void WriteTags(string fileName, RdlTagCollection tags) { Write(RootDirectory, fileName, tags.ToBytes()); }
public static void WriteMap(string mapName, RdlTagCollection tags) { Write(GetPath(MapsDirectory), mapName, tags.ToBytes()); }