Esempio n. 1
0
        private static void InvokeAsyncRequestCallback(AsyncRequestInfo asyncRequestInfo, object[] objects,
                                                       Exception exception)
        {
            if (exception != null)
            {
                throw new NotImplementedException("Unknown exception occurred.", exception);
            }

            if (asyncRequestInfo == null)
            {
                throw new NullReferenceException("asyncRequestInfo was null.");
            }

            asyncRequestInfo.Callback(new WebserviceResult(asyncRequestInfo, objects));
        }