public void Host_to_StandIn() { using (var host = new WcfHostTransceiver("localhost:8000")) using (var standIn = new WcfStandInTransceiver("localhost:8001", "localhost:8000")) { HostOutput output = null; standIn.ReceivedFromHost += _ => output = _; host.SendToStandIn(new Tuple <string, HostOutput>("localhost:8001", new HostOutput { Data = new byte[] { 4, 2 } })); Assert.AreEqual(new byte[] { 4, 2 }, output.Data); } }
public void StandIn_to_Host() { using (var host = new WcfHostTransceiver("localhost:8000")) using (var standIn = new WcfStandInTransceiver("localhost:8001", "localhost:8000")) { HostInput input = null; host.ReceivedFromStandIn += _ => input = _; standIn.SendToHost(new HostInput { Data = new byte[] { 4, 2 } }); Assert.AreEqual(new byte[] { 4, 2 }, input.Data); } }
public WcfOperationHost(IFlowRuntime runtime, string endpointAddress) { var transceiver = new WcfHostTransceiver(endpointAddress); _operationHost = new OperationHost(runtime, transceiver, transceiver); }