Beispiel #1
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);
            }
        }
Beispiel #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;
            }
        }
Beispiel #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);
 }