public Communication() { EndpointAddress endpoint = new EndpointAddress("net.tcp://localhost:8080/ApolloService/DuplexMEP"); mApolloService = new ApolloService(new InstanceContext(mApolloCallback), GetBindingFromName("NetTcp"), endpoint); mApolloCallback = new ApolloCallback(); mApolloCallback.eventCallback += mApolloCallback_eventCallback; }
void mApolloCallback_eventCallback(ApolloCallback a, CallBackEventArgs e) { eventCallback(e.Str); }