示例#1
0
 public void SendString(string StrToSend)
 {
   StringMessage SM = new StringMessage();
   SM.Message = StrToSend;
   SM.InitializeNewMessage();
   foreach (Destination d in _Destins)
   {
     d.SendString(SM);
   }
 }
示例#2
0
 public abstract void SendString(StringMessage SM);
示例#3
0
 public override void SendString(StringMessage SM)
 {
   Console.WriteLine("LOG: " + GetIndentString() + SM.Message);
 }
示例#4
0
 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);
     }
   }
 }