public void Write(PolicyErrorArgs arg) { var s = String.Format("{0}: ({1}) {2}{3}", DateTime.Now.ToShortTimeString(), arg.Error.Error.Code, arg.Error.Error.Message, Environment.NewLine); File.AppendAllText(_logPath, s); OnLoggerEvent(new LoggerEventArgs { Message = s }); }
protected virtual void RaisePolicyError(PolicyErrorArgs e) { PolicyErrorMessage?.Invoke(this, e); }