Пример #1
0
        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);
            }
        }
Пример #2
0
 public static void WriteTags(string fileName, RdlTagCollection tags)
 {
     Write(RootDirectory, fileName, tags.ToBytes());
 }
Пример #3
0
 public static void WriteMap(string mapName, RdlTagCollection tags)
 {
     Write(GetPath(MapsDirectory), mapName, tags.ToBytes());
 }