public Task Handle(
     ApplicationEnd notification,
     CancellationToken cancellationToken)
 {
     return(Task.CompletedTask);
 }
示例#2
0
 protected virtual void OnApplicationEnd(object sender, EventArgs evargs)
 {
     ApplicationEnd?.Invoke(this, EventArgs.Empty);
 }
示例#3
0
 void Application_End(object sender, EventArgs e)
 {
     //  在应用程序关闭时运行的代码
     ApplicationEnd.End();
 }