Exemple #1
0
 /// <summary>Raises the event of the specified name.</summary>
 /// <param name="eventName">The name of the event to raise.</param>
 public void Raise(string eventName)
 {
     using (var scope = new EventArgsResolverScope(eventArgsResolvers))
     {
         scope.ApplyResolver();
         executor.Raise(eventName);
     }
 }
Exemple #2
0
 /// <summary>
 /// Raises the event of the specified name asynchronously.
 /// </summary>
 /// <param name="eventName">The name of the event to raise.</param>
 /// <returns>A task that represents the asynchronous raise operation.</returns>
 public async Task RaiseAsync(string eventName)
 {
     using (var scope = new EventArgsResolverScope(eventArgsResolvers))
     {
         scope.ApplyResolver();
         await executor.RaiseAsync(eventName);
     }
 }