public void SendToHost(AutomationMessage m) { using (TextWriter tw = new StreamWriter(Path.Combine(receiveInbox.FullName, m.Id + ".xml"))) { tw.Write(m.ToXML()); } }
public string Send(AutomationMessage m) { using (TextWriter tw = new StreamWriter(Path.Combine(serverInbox.FullName, m.Id + ".xml"))) { tw.Write(m.ToXML()); } return(m.Id); }
public string Send(AutomationMessage m) { using (TextWriter tw = new StreamWriter(Path.Combine(serverInbox.FullName, m.Id + ".xml"))) { tw.Write(m.ToXML()); } return m.Id; }
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); //} }