public void Handle(string content) { if (!tcpSocketIsEnabled) return; _liveTcpSocketManager.Write(content); }
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); } }