internal async Task <bool> OnUnhandledErrorAsync(Exception e, IContext context) { var args = new UnhandledErrorEventArgs(e, context); this.OnUnhandledError(args); return(await Task.FromResult(args.Abort)); }
/// <summary> /// <see cref="ExapisSOP.AppWorker.UnhandledError"/>イベントを発生させます。 /// </summary> /// <param name="e">未処理の例外オブジェクトを格納しているイベントデータです。</param> protected virtual void OnUnhandledError(UnhandledErrorEventArgs e) { this.UnhandledError?.Invoke(this, e); }