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); } }
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); } }
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); } }
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); }
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); }
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); }
public void Invoke(EventType @event) { LogEnter(@event, GetSet.Get(@event).GetInvocationList().Length - 1); proxy.Invoke(@event); LogExit(@event); }
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); }
public void Invoke <T1, T2, T3>(EventType @event, T1 t1, T2 t2, T3 t3) { GetSet.Get <T1, T2, T3>(@event)(t1, t2, t3); }
public void Invoke <T1, T2>(EventType @event, T1 t1, T2 t2) { GetSet.Get <T1, T2>(@event)(t1, t2); }
public void Invoke <T>(EventType @event, T t) { GetSet.Get <T>(@event)(t); }
public void Invoke(EventType @event) { GetSet.Get(@event)(); }