Exemplo n.º 1
0
 public void Join(string id)
 {
     _callbackInstance = OperationContext.Current.GetCallbackChannel<IMyCallback>();
     Broadcast += new MessageEventHandler(RaiseBroadcastEvent);
     Console.WriteLine(DateTime.Now + " : " + id + " has connected.");
 }
Exemplo n.º 2
0
 public VendorServer()
 {
     callback      = OperationContext.Current.GetCallbackChannel <IMyCallback>();
     vendorService = new VendorService();
     vendorService.AgentManager.AgentLoggedIn += AgentManager_AgentLoggedIn;
 }