Beispiel #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);
 }
Beispiel #2
0
 public void OnClosed(DataContextEventData eventData)
 {
     Apply(() =>
     {
         foreach (var interceptor in Interceptors)
         {
             interceptor.OnClosed(eventData);
         }
     });
 }
 public virtual void OnClosed(DataContextEventData eventData)
 {
 }
 public virtual Task OnClosingAsync(DataContextEventData eventData) => TaskEx.CompletedTask;