/// <summary> /// /// </summary> public void Callback(ResultArgs args) { if (_callbackDelegate != null) { this._callbackDelegate(args); } }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void te_Ended(object sender, EventArgs e) { TaskExecutor te = (TaskExecutor)sender; ResultArgs resultArgs = new ResultArgs(); resultArgs.ExecuteArgs = this._executeArgs; resultArgs.IsComplete = true; resultArgs.IsSuccess = te.Task.LastParseResult.IsSuccess; resultArgs.Message = te.Task.LastParseResult.ToString(); resultArgs.KeyValues = te.Task.LastParseResult.Results; this._resultArgs = resultArgs; if (this.ResultEvent != null) { ResultEvent(this, EventArgs.Empty); } }
/// <summary> /// /// </summary> /// <param name="status"></param> private void Target(ResultArgs args) { //Console.WriteLine("RemoteController Target: {0} {1} {2} {3} ", // args.IsComplete, // args.IsSuccess, // args.Message, // args.ExecuteName); this._resultArgs = args; if (this.ResultEvent != null) { this.ResultEvent(this, EventArgs.Empty); } }