Ejemplo n.º 1
0
 public void AddClient(ICallbackReceiverPrx?client, Current current)
 {
     lock (this)
     {
         Console.WriteLine($"adding client `{client!.Identity}'");
         _clients.Add(client.Clone(fixedConnection: current.Connection));
     }
 }
Ejemplo n.º 2
0
 public void InitiateCallback(ICallbackReceiverPrx?proxy, Current current, CancellationToken cancel)
 {
     Console.Out.WriteLine("initiating callback");
     try
     {
         proxy !.Callback();
     }
     catch (Exception ex)
     {
         Console.Error.WriteLine(ex);
     }
 }
Ejemplo n.º 3
0
 public void InitiateCallback(ICallbackReceiverPrx?proxy, Current current)
 {
     try
     {
         proxy !.Callback(current.Context);
     }
     catch (DispatchException ex)
     {
         ex.ConvertToUnhandled = false;
         throw;
     }
 }
Ejemplo n.º 4
0
 public void InitiateCallbackEx(ICallbackReceiverPrx?proxy, Current current, CancellationToken cancel)
 {
     try
     {
         proxy !.CallbackEx(current.Context, cancel: cancel);
     }
     catch (RemoteException ex)
     {
         ex.ConvertToUnhandled = false;
         throw;
     }
 }
Ejemplo n.º 5
0
 initiateCallbackEx(ICallbackReceiverPrx?proxy, Current current)
 {
     try
     {
         proxy !.callbackEx(current.Context);
     }
     catch (RemoteException ex)
     {
         ex.ConvertToUnhandled = false;
         throw;
     }
 }
Ejemplo n.º 6
0
 public void InitiateCallback(ICallbackReceiverPrx?proxy, Current current)
 {
     Console.WriteLine($"initiating callback to: {proxy}");
     try
     {
         proxy !.Callback();
     }
     catch (Exception ex)
     {
         Console.Error.WriteLine(ex);
     }
 }
Ejemplo n.º 7
0
 initiateCallbackEx(ICallbackReceiverPrx?proxy, Current current) => proxy !.callbackEx(current.Context);
Ejemplo n.º 8
0
 initiateCallback(ICallbackReceiverPrx?proxy, Ice.Current current) => proxy !.callback(current.Context);
Ejemplo n.º 9
0
 public void InitiateCallback(ICallbackReceiverPrx?proxy, Current current) =>
 proxy !.Callback(current.Context);
Ejemplo n.º 10
0
 public void InitiateCallback(ICallbackReceiverPrx?proxy, Current current, CancellationToken cancel) =>
 proxy !.Callback(current.Context, cancel : cancel);