Example #1
0
            public void HandleRequest(IServiceFilterRequest request, INextServiceFilterCallback nextServiceFilterCallback,
                                      IServiceFilterResponseCallback responseCallback)
            {
                mToDoActivity.RunOnUiThread(new MyRunnable(mToDoActivity.mProgressBar, ProgressBar.VISIBLE));

                nextServiceFilterCallback.OnNext(request, new MyServiceFilterResponseCallback(mToDoActivity, responseCallback));
            }
Example #2
0
                public void OnResponse(IServiceFilterResponse response, System.Exception exception)
                {
                    mToDoActivity.RunOnUiThread(new MyRunnable(mToDoActivity.mProgressBar, ProgressBar.GONE));

                    if (mResponseCallback != null)
                    {
                        mResponseCallback.OnResponse(response, exception);
                    }
                }