public void SendString(string StrToSend) { StringMessage SM = new StringMessage(); SM.Message = StrToSend; SM.InitializeNewMessage(); foreach (Destination d in _Destins) { d.SendString(SM); } }
public abstract void SendString(StringMessage SM);
public override void SendString(StringMessage SM) { Console.WriteLine("LOG: " + GetIndentString() + SM.Message); }
public override void SendString(StringMessage SM) { ArrayList TempArray = new ArrayList(SM.Message.Split('\r', '\n')); string TempString = new String(' ', SM.UTCTime.ToString("dd-MM-yyyy").Length + 1 + SM.UTCTime.ToLongTimeString().Length); TempString += ""; TempString += GetIndentString(); Output.WriteLine("{0}{1} {2}", SM.UTCTime.ToString("dd-MM-yyyy") + " " + SM.UTCTime.ToLongTimeString(), GetIndentString(), TempArray[0].ToString()); TempArray.RemoveAt(0); foreach (String s in TempArray) { if (s.Trim('\r', '\n').Length != 0) { Output.WriteLine("{0} {1}", TempString, s); } } }