public TeleComSystem( IInbound binaryUdpInbound, IOutbound xmlTcpOutbound, IAcmeProcessingWorkflow acmeProcessingWorkflow) { _inbound = binaryUdpInbound; _outbound = xmlTcpOutbound; _processingWorkflow = acmeProcessingWorkflow; }
//for tests public TeleComSystem( IProcessingWorkflow processingWorkflow, IInbound inbound, IOutbound outbound) { _processingWorkflow = processingWorkflow; _inbound = inbound; _outbound = outbound; }
private static string Serialize(IOutbound message) { switch (message) { case Outbound.GetIdList getIdList: return(Serialize(getIdList)); case Outbound.Read read: return(Serialize(read)); default: return(string.Empty); } }
public void SetOutbound(IOutbound outbound) { _outbound = outbound; }
public TeleComSystem() { _inbound = ApplicationRoot.Context.Resolve <IInbound>(); _outbound = ApplicationRoot.Context.Resolve <IOutbound>(); _processingWorkflow = ApplicationRoot.Context.Resolve <IProcessingWorkflow>(); }
public TaskCreater(string station, IOutbound outbound) : base(outbound) { this.Station = station; }
public Datagram Serialize(IOutbound message, string ipAddress) { string data = Serialize(message); return(new Datagram(data, ipAddress)); }
public OutstoreTask(IOutbound outbound) { this.Outbound = outbound; }