Exemplo n.º 1
0
 public void SendToHost(AutomationMessage m)
 {
     using (TextWriter tw = new StreamWriter(Path.Combine(receiveInbox.FullName, m.Id + ".xml")))
     {
         tw.Write(m.ToXML());
     }
 }
Exemplo n.º 2
0
 public string Send(AutomationMessage m)
 {
     using (TextWriter tw = new StreamWriter(Path.Combine(serverInbox.FullName, m.Id + ".xml")))
     {
         tw.Write(m.ToXML());
     }
     return(m.Id);
 }
Exemplo n.º 3
0
 public string Send(AutomationMessage m)
 {
     using (TextWriter tw = new StreamWriter(Path.Combine(serverInbox.FullName, m.Id + ".xml")))
     {
         tw.Write(m.ToXML());
     }
     return m.Id;
 }
Exemplo n.º 4
0
 public void SendToHost(AutomationMessage m)
 {
     using (TextWriter tw = new StreamWriter(Path.Combine(receiveInbox.FullName, m.Id + ".xml")))
     {
         tw.Write(m.ToXML());
     }
 }
 private void SendToHost(AutomationMessage m)
 {
     //m.To = hostName;
     using (TextWriter tw = new StreamWriter(Path.Combine(AppConfig.Outbox.FullName, m.Id + ".xml")))
     {
         tw.Write(m.ToXML());
     }
     //using (MessageQueue mq = MessageSendRecieve.GetSpecificMessageQueue(@"FormatName:DIRECT=OS:" + hostName + @"\Private$\" + MessageSendRecieve.LocalQueueName))
     //{
     //    mq.Send(m, MessageQueueTransactionType.Single);
     //}
 }