Пример #1
0
            protected IAsyncResult BeginInvoke(string methodName, object [] args, AsyncCallback callback, object state)
            {
                var cd = endpoint.Contract;
                var od = cd.Operations.Find(methodName);

                if (od == null)
                {
                    throw new ArgumentException(String.Format("Operation '{0}' not found in the service contract '{1}' in namespace '{2}'", methodName, cd.Name, cd.Namespace));
                }
                return(Inner.BeginProcess(od.BeginMethod, methodName, args, callback, state));
            }
Пример #2
0
        // proxy base implementation.

        public IAsyncResult BeginProcess(MethodBase method, string operationName, object [] parameters, AsyncCallback callback, object asyncState)
        {
            return(client.BeginProcess(method, operationName, parameters, callback, asyncState));
        }