Пример #1
0
            public void Unsub <U, T1, T2, T3, T4, T5>(EventType @event, Listener <U> listenerU)
            {
                Action <T1, T2, T3, T4, T5> action = GetSet.Get <T1, T2, T3, T4, T5>(@event);

                if (listenerU is IListener <T1, T2, T3, T4, T5> )
                {
                    action -= ((IListener <T1, T2, T3, T4, T5>)listenerU).Invoke;
                    GetSet.Set <T1, T2, T3, T4, T5>(@event, action);
                }
                else
                {
                    LogUnsubWarn(listenerU, @event);
                }
            }
Пример #2
0
            public void Sub <U, T1, T2>(EventType @event, Listener <U> listenerU)
            {
                Action <T1, T2> action = GetSet.Get <T1, T2>(@event);

                if (listenerU is IListener <T1, T2> )
                {
                    action += ((IListener <T1, T2>)listenerU).Invoke;
                    GetSet.Set <T1, T2>(@event, action);
                }
                else
                {
                    LogSubWarn(listenerU, @event);
                }
            }
Пример #3
0
            public void Unsub <U>(EventType @event, Listener <U> listenerU)
            {
                Action action = GetSet.Get(@event);

                if (listenerU is IListener)
                {
                    action -= ((IListener)listenerU).Invoke;
                    GetSet.Set(@event, action);
                }
                else
                {
                    LogUnsubWarn(listenerU, @event);
                }
            }
Пример #4
0
        public MainWindow()
        {
            InitializeComponent();

            DBConnectionSet connectionSet = new DBConnectionSet();

            connectionSet.Connection  = ConfigurationManager.AppSettings.Get("CS").ToString();
            connectionSet.Database    = ConfigurationManager.AppSettings.Get("DB").ToString();
            connectionSet.Table       = ConfigurationManager.AppSettings.Get("Table").ToString();
            connectionSet.Filter      = "Set";
            connectionSet.FilterValue = Set.NeoGenesis;


            GetSet getSet = new GetSet();

            fulllist.AddRange(getSet.Get(connectionSet));

            int count = fulllist.Count;

            Console.WriteLine(count);
        }
Пример #5
0
 public void Invoke <T1, T2, T3, T4, T5>(EventType @event, T1 t1, T2 t2, T3 t3, T4 t4, T5 t5)
 {
     LogEnter(@event, GetSet.Get <T1, T2, T3, T4, T5>(@event).GetInvocationList().Length - 1);
     proxy.Invoke(@event, t1, t2, t3, t4, t5);
     LogExit(@event);
 }
Пример #6
0
 public void Invoke <T1, T2>(EventType @event, T1 t1, T2 t2)
 {
     LogEnter(@event, GetSet.Get <T1, T2>(@event).GetInvocationList().Length - 1);
     proxy.Invoke(@event, t1, t2);
     LogExit(@event);
 }
Пример #7
0
 public void Invoke(EventType @event)
 {
     LogEnter(@event, GetSet.Get(@event).GetInvocationList().Length - 1);
     proxy.Invoke(@event);
     LogExit(@event);
 }
Пример #8
0
 public void Invoke <T1, T2, T3, T4, T5>(EventType @event, T1 t1, T2 t2, T3 t3, T4 t4, T5 t5)
 {
     GetSet.Get <T1, T2, T3, T4, T5>(@event)(t1, t2, t3, t4, t5);
 }
Пример #9
0
 public void Invoke <T1, T2, T3>(EventType @event, T1 t1, T2 t2, T3 t3)
 {
     GetSet.Get <T1, T2, T3>(@event)(t1, t2, t3);
 }
Пример #10
0
 public void Invoke <T1, T2>(EventType @event, T1 t1, T2 t2)
 {
     GetSet.Get <T1, T2>(@event)(t1, t2);
 }
Пример #11
0
 public void Invoke <T>(EventType @event, T t)
 {
     GetSet.Get <T>(@event)(t);
 }
Пример #12
0
 public void Invoke(EventType @event)
 {
     GetSet.Get(@event)();
 }