Ejemplo n.º 1
0
 public exResult(baseResult baseResult, int num, string info = null) : base(baseResult, info)
 {
     this.Num = num;
 }
 /// <summary>
 /// 异步完成
 /// </summary>
 /// <param name="result"></param>
 public void SetCompleted(baseResult baseResult, string Info = "")
 {
     _baseResult = baseResult;
     _info       = Info;
     _asyncCallback?.Invoke(this);
 }
 /// <summary>
 /// 异步完成
 /// </summary>
 /// <param name="result"></param>
 public void SetCompleted(IResult result)
 {
     _baseResult = result.BaseResult;
     _info       = result.Info;
     _asyncCallback?.Invoke(this);
 }
 /// <summary>
 /// 结果的初始化
 /// </summary>
 /// <param name="baseResult">结果枚举</param>
 /// <param name="info">结果信息</param>
 public Result(baseResult baseResult, string info = "")
 {
     this._baseResult = baseResult;
     this._info       = info;
 }