예제 #1
0
        public void Handle(string content)
        {
            if (!tcpSocketIsEnabled) return;

            _liveTcpSocketManager.Write(content);

        }
예제 #2
0
 public void SetNewMap(MapSearchResult map)
 {
     if (tcpSocketIsEnabled)
     {
         Dictionary<string, string> output = new Dictionary<string, string>();
         foreach (var s in map.FormatedStrings)
         {
             if (!s.IsMemoryFormat) //memory pattern is handled elsewhere
                 output[s.Name] = s.GetFormatedPattern();
         }
         var json = JsonConvert.SerializeObject(output);
         _tcpSocketManager.Write(json);
     }
 }