/// <summary>
 /// Fires the InvokeRejected event.
 /// </summary>
 /// <param name="e">Event arguments</param>
 protected internal virtual void OnInvokeRejected(InvokeCanceledEventArgs e)
 {
     if (InvokeRejected != null)
     {
         InvokeRejected(this, e);
     }
 }
Beispiel #2
0
 /// <summary>
 /// Feuert das InvokeCanceled-Ereignis.
 /// </summary>
 /// <param name="e">Ereignisargumente</param>
 protected internal virtual void OnInvokeCanceled(InvokeCanceledEventArgs e)
 {
     // Wenn für AfterInvoke Ereignisprozeduren registriert sind ...
     if (InvokeCanceled != null)
     {
         // Ereignis feuern
         InvokeCanceled(this, e);
     }
 }
        /// <summary>
        /// Fires the InvokeRejected event.
        /// </summary>
        /// <param name="details">Invocation details</param>
        /// <param name="ex">Exception</param>
        private void Invoke_FireInvokeRejectedEvent(InvocationDetails details, Exception ex)
        {
            details.ExceptionThrown = true;

            var args = new InvokeCanceledEventArgs
            {
                TrackingID      = details.TrackingID,
                CancelException = ex
            };

            _host.OnInvokeRejected(args);

            throw args.CancelException.PreserveStackTrace() ?? new InvokeCanceledException();
        }
Beispiel #4
0
        /// <summary>
        /// Fires the InvokeRejected event.
        /// </summary>
        /// <param name="details">Invocation details</param>
        /// <param name="ex">Exception</param>
        private void Invoke_FireInvokeRejectedEvent(InvocationDetails details, Exception ex)
        {
            details.ExceptionThrown = true;

            var args = new InvokeCanceledEventArgs
            {
                TrackingID             = details.TrackingID,
                InterfaceName          = details.InterfaceName,
                DelegateCorrelationSet = details.DelegateCorrelationSet,
                MethodName             = details.MethodName,
                Arguments       = details.Args,
                CancelException = ex
            };

            _host.OnInvokeRejected(args);

            throw args.CancelException.PreserveStackTrace() ?? new InvokeCanceledException();
        }
Beispiel #5
0
 /// <summary>
 /// Fires the InvokeRejected event.
 /// </summary>
 /// <param name="e">Event arguments</param>
 protected internal virtual void OnInvokeRejected(InvokeCanceledEventArgs e)
 {
     InvokeRejected?.Invoke(this, e);
 }
Beispiel #6
0
        /// <summary>
        /// Fires the InvokeRejected event.
        /// </summary>
        /// <param name="details">Invocation details</param>
        /// <param name="ex">Exception</param>
        private void Invoke_FireInvokeRejectedEvent(InvocationDetails details, Exception ex)
        {
            details.ExceptionThrown = true;

            var args = new InvokeCanceledEventArgs
            {
                TrackingID = details.TrackingID,
                CancelException = ex
            };

            _host.OnInvokeRejected(args);

            throw args.CancelException.PreserveStackTrace() ?? new InvokeCanceledException();
        }
Beispiel #7
0
        /// <summary>
        /// Fires the InvokeRejected event.
        /// </summary>
        /// <param name="details">Invocation details</param>
        /// <param name="ex">Exception</param>
        private void Invoke_FireInvokeRejectedEvent(InvocationDetails details, Exception ex)
        {
            details.ExceptionThrown = true;

            var args = new InvokeCanceledEventArgs
            {
                TrackingID = details.TrackingID,
                InterfaceName = details.InterfaceName,
                DelegateCorrelationSet = details.DelegateCorrelationSet,
                MethodName = details.MethodName,
                Arguments = details.Args,
                CancelException = ex
            };

            _host.OnInvokeRejected(args);

            throw args.CancelException.PreserveStackTrace() ?? new InvokeCanceledException();
        }