public void getClientEndpoints(GetClientEndpointsCallback callback) { EndpointI[] clientEndpoints = null; lock (this) { clientEndpoints = _clientEndpoints; } if (clientEndpoints != null) // Lazy initialization. { callback.setEndpoints(clientEndpoints); return; } _router.getClientProxyAsync().ContinueWith( (t) => { try { var r = t.Result; callback.setEndpoints(setClientEndpoints(r.returnValue, r.hasRoutingTable.HasValue ? r.hasRoutingTable.Value : true)); } catch (System.AggregateException ae) { Debug.Assert(ae.InnerException is LocalException); callback.setException((LocalException)ae.InnerException); } }, System.Threading.Tasks.TaskScheduler.Current); }
public void getClientEndpoints(GetClientEndpointsCallback callback) { EndpointI[] clientEndpoints = null; lock (this) { clientEndpoints = _clientEndpoints; } if (clientEndpoints != null) // Lazy initialization. { callback.setEndpoints(clientEndpoints); return; } _router.getClientProxyAsync().ContinueWith( (t) => { try { callback.setEndpoints(setClientEndpoints(t.Result)); } catch (System.AggregateException ae) { Debug.Assert(ae.InnerException is Ice.LocalException); callback.setException((Ice.LocalException)ae.InnerException); } }); }
public void getClientEndpoints(GetClientEndpointsCallback callback) { EndpointI[] clientEndpoints = null; lock (this) { clientEndpoints = _clientEndpoints; } if (clientEndpoints != null) // Lazy initialization. { callback.setEndpoints(clientEndpoints); return; } _router.begin_getClientProxy().whenCompleted( (Ice.ObjectPrx proxy) => { callback.setEndpoints(setClientEndpoints(proxy)); }, (Ice.Exception ex) => { Debug.Assert(ex is Ice.LocalException); callback.setException((Ice.LocalException)ex); }); }
public void getClientEndpoints(GetClientEndpointsCallback callback) { EndpointI[] clientEndpoints = null; lock(this) { clientEndpoints = _clientEndpoints; } if(clientEndpoints != null) // Lazy initialization. { callback.setEndpoints(clientEndpoints); return; } _router.begin_getClientProxy().whenCompleted( (Ice.ObjectPrx proxy) => { callback.setEndpoints(setClientEndpoints(proxy)); }, (Ice.Exception ex) => { Debug.Assert(ex is Ice.LocalException); callback.setException((Ice.LocalException)ex); }); }
public void getClientEndpoints(GetClientEndpointsCallback callback) { EndpointI[] clientEndpoints = null; lock(this) { clientEndpoints = _clientEndpoints; } if(clientEndpoints != null) // Lazy initialization. { callback.setEndpoints(clientEndpoints); return; } _router.getClientProxyAsync().ContinueWith( (t) => { try { callback.setEndpoints(setClientEndpoints(t.Result)); } catch(System.AggregateException ae) { Debug.Assert(ae.InnerException is Ice.LocalException); callback.setException((Ice.LocalException)ae.InnerException); } }); }
internal GetClientProxyCallback(RouterInfo info, GetClientEndpointsCallback callback) { _info = info; _callback = callback; }
public void getClientEndpoints(GetClientEndpointsCallback callback) { EndpointI[] clientEndpoints = null; lock(this) { clientEndpoints = _clientEndpoints; } if(clientEndpoints != null) // Lazy initialization. { callback.setEndpoints(clientEndpoints); return; } _router.getClientProxy_async(new GetClientProxyCallback(this, callback)); }