Exemplo n.º 1
0
Arquivo: Request.cs Projeto: wpmyj/c3
        /// <summary>
        ///
        /// </summary>
        /// <param name="parameter"></param>
        /// <param name="cbWrapper"></param>
        /// <returns></returns>
        public ExecuteResult Execute(ExecuteArgs executeArgs, CallbackWrapper cbWrapper)
        {
            if (Executeing != null)
            {
                ExecuteEventArgs e = new ExecuteEventArgs();
                e.ExecuteArgs = executeArgs;
                if (cbWrapper != null)
                {
                    e.CallbackWrapper = cbWrapper;
                }

                Executeing(this, e);

                return(e.Result);
            }
            else
            {
                return(null);
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="parameter"></param>
        /// <param name="cbWrapper"></param>
        /// <returns></returns>
        public ExecuteResult Execute(ExecuteArgs executeArgs, CallbackWrapper cbWrapper)
        {
            if (Executeing != null)
            {
                ExecuteEventArgs e = new ExecuteEventArgs();
                e.ExecuteArgs = executeArgs;
                if (cbWrapper != null)
                {
                    e.CallbackWrapper = cbWrapper;
                }

                Executeing(this, e);

                return e.Result;
            }
            else
            {
                return null;
            }
        }
Exemplo n.º 3
0
 /// <summary>
 /// 
 /// </summary>
 public ExecuteResult Doit(ExecuteArgs args)
 {
     RemoteObject obj = this.GetRemoteObject();
     CallbackWrapper w = new CallbackWrapper(new ResultDelegate(Target));
     return obj.Execute(args, w);
 }