Ejemplo n.º 1
0
 public EventPublishCatchAllHandlerResult(ICatchAllEventHandler handler,
                                          EventHandlerExecutionCode executionCode, Exception error)
 {
     Handler       = handler;
     ExecutionCode = executionCode;
     Error         = error;
 }
Ejemplo n.º 2
0
 public void Add(ICatchAllEventHandler handler)
 {
     if (disposing || disposed)
     {
         return;
     }
     CatchAllEventHandlers[handler] = 0;
 }
Ejemplo n.º 3
0
 public void Remove(ICatchAllEventHandler handler)
 {
     if (disposing || disposed)
     {
         return;
     }
     CatchAllEventHandlers.Remove(handler);
 }
Ejemplo n.º 4
0
        /// <summary>
        ///     <inheritdoc />
        /// </summary>
        /// <param name="handler"></param>
        public void UnregisterCatchAllHandler(ICatchAllEventHandler handler)
        {
            if (handler == null)
            {
                return;
            }

            UnregisterCatchAllHandler(new[]
            {
                handler
            });
        }