Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
/// <summary>触发异常</summary> /// <param name="action">动作</param> /// <param name="ex">异常</param> internal protected virtual void OnError(String action, Exception ex) { Pipeline?.Error(CreateContext(this), ex); if (Log != null) { Log.Error("{0}{1}Error {2} {3}", LogPrefix, action, this, ex?.Message); } Error?.Invoke(this, new ExceptionEventArgs { Action = action, Exception = ex }); }