예제 #1
0
 public async Task OnClosedAsync(DataContextEventData eventData)
 {
     await Apply(async() =>
     {
         foreach (var interceptor in Interceptors)
         {
             await interceptor.OnClosedAsync(eventData).ConfigureAwait(Common.Configuration.ContinueOnCapturedContext);
         }
     }).ConfigureAwait(Common.Configuration.ContinueOnCapturedContext);
 }
예제 #2
0
 public void OnClosed(DataContextEventData eventData)
 {
     Apply(() =>
     {
         foreach (var interceptor in Interceptors)
         {
             interceptor.OnClosed(eventData);
         }
     });
 }
예제 #3
0
 public virtual void OnClosed(DataContextEventData eventData)
 {
 }
예제 #4
0
 public virtual Task OnClosingAsync(DataContextEventData eventData) => TaskEx.CompletedTask;