Exemplo n.º 1
0
 public Task RaiseEventAsync(string eventName, object sender, EventArgs eventArgs)
 {
     return(WeakAsyncEventManagerExecutor.RaiseEventAsync <object, EventArgs>(eventName, sender, eventArgs, _delegateWrapperDict));
 }
Exemplo n.º 2
0
 public Task RaiseEventAsync <TSender>(string eventName, TSender sender, EventArgs eventArgs) where TSender : class
 {
     return(WeakAsyncEventManagerExecutor.RaiseEventAsync <TSender, EventArgs>(eventName, sender, eventArgs, _delegateWrapperDict));
 }
Exemplo n.º 3
0
 public void Remove <TSender>(AsyncEventHandler <TSender> handlerDelegate, [CallerMemberName] string eventName = "") where TSender : class
 {
     WeakAsyncEventManagerExecutor.Remove(eventName, handlerDelegate.Target, handlerDelegate.Method, _delegateWrapperDict);
 }
Exemplo n.º 4
0
 public void Remove(AsyncEventHandler handlerDelegate, [CallerMemberName] string eventName = "")
 {
     WeakAsyncEventManagerExecutor.Remove(eventName, handlerDelegate.Target, handlerDelegate.Method, _delegateWrapperDict);
 }
Exemplo n.º 5
0
 public void Add <TSender, TEventArgs>(AsyncEventHandler <TSender, TEventArgs> handlerDelegate, [CallerMemberName] string eventName = "") where TSender : class where TEventArgs : class
 {
     WeakAsyncEventManagerExecutor.Add(eventName, handlerDelegate.Target, handlerDelegate.Method, _delegateWrapperDict);
 }