Example #1
0
        protected void OnEventFired()
        {
            var args = new EventActionInterceptionArgsImpl <TInstance>();

            args.EventBroker = this;

            for (var i = linkedHandlers.First; i != null; i = i.Next)
            {
                args.Handler = i.Value;
                argsHandler(args);
            }
        }
Example #2
0
        protected void OnEventFired(TArg1 arg1, TArg2 arg2)
        {
            var args = new EventActionInterceptionArgsImpl <TInstance, TArg1, TArg2>();

            args.Arg1        = arg1;
            args.Arg2        = arg2;
            args.Event       = @event;
            args.EventBroker = this;

            for (var i = linkedHandlers.First; i != null; i = i.Next)
            {
                args.Handler = i.Value;
                argsHandler(args);
            }
        }
Example #3
0
        protected void OnEventFired(TArg1 arg1, TArg2 arg2, TArg3 arg3, TArg4 arg4, TArg5 arg5, TArg6 arg6, TArg7 arg7)
        {
            var args = new EventActionInterceptionArgsImpl <TInstance, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7>();

            args.Arg1        = arg1;
            args.Arg2        = arg2;
            args.Arg3        = arg3;
            args.Arg4        = arg4;
            args.Arg5        = arg5;
            args.Arg6        = arg6;
            args.Arg7        = arg7;
            args.Event       = @event;
            args.EventBroker = this;

            for (var i = linkedHandlers.First; i != null; i = i.Next)
            {
                args.Handler = i.Value;
                argsHandler(args);
            }
        }