public override Ice.DispatchStatus dispatch(Ice.Request request) { Ice.Current current = request.getCurrent(); lastOperation_ = current.operation; if(lastOperation_.Equals("amdAddWithRetry")) { for(int i = 0; i < 10; ++i) { Ice.DispatchInterceptorAsyncCallback cb = new DispatchInterceptorAsyncCallbackI(); lastStatus_ = servant_.ice_dispatch(request, cb); test(lastStatus_ == Ice.DispatchStatus.DispatchAsync); } request.getCurrent().ctx["retry"] = "no"; } lastStatus_ = servant_.ice_dispatch(request, this); return lastStatus_; }
dispatch(Ice.Request request) { Ice.Current current = request.getCurrent(); lastOperation_ = current.operation; if (lastOperation_.Equals("amdAddWithRetry")) { for (int i = 0; i < 10; ++i) { Ice.DispatchInterceptorAsyncCallback cb = new DispatchInterceptorAsyncCallbackI(); lastStatus_ = servant_.ice_dispatch(request, cb); test(lastStatus_ == Ice.DispatchStatus.DispatchAsync); } request.getCurrent().ctx["retry"] = "no"; } lastStatus_ = servant_.ice_dispatch(request, this); return(lastStatus_); }