/// <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); } }
/// <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; } }
/// <summary> /// /// </summary> public ExecuteResult Doit(ExecuteArgs args) { RemoteObject obj = this.GetRemoteObject(); CallbackWrapper w = new CallbackWrapper(new ResultDelegate(Target)); return obj.Execute(args, w); }