Example #1
0
 public void Ping(Guid guid)
 {
     callback = OperationContext.Current.GetCallbackChannel <IWcfDuplexServiceCallback>();
     // Schedule the callback on another thread to avoid reentrancy.
     Task.Run(() => callback.OnPingCallback(guid));
 }
Example #2
0
 public void Ping(Guid guid)
 {
     callback = OperationContext.Current.GetCallbackChannel<IWcfDuplexServiceCallback>();
     // Schedule the callback on another thread to avoid reentrancy.
     Task.Run(() => callback.OnPingCallback(guid));
 }