Esempio n. 1
0
 public FinderOfReceptor(IEvent evnt, string evntName, IReceptorStore store, EventHub hub)
 {
     Event     = evnt;
     EventName = evntName;
     Stores    = store;
     Hub       = hub;
 }
Esempio n. 2
0
            public FinderOfReceptorByType(IEvent evnt, IReceptorStore store, EventHub hub, Type baseType)
            {
                Event    = evnt;
                Stores   = store;
                Hub      = hub;
                BaseType = baseType;
                var evntName = BaseType.Name;

                if (evntName.IndexOf("Receptor") > 0)
                {
                    evntName = evntName.Substring(0, evntName.Length - 8);
                }
                EventName = evntName;
            }