Initialize() public méthode

public Initialize ( ) : void
Résultat void
Exemple #1
0
        public void Register(string group, Type eventType, string shortName = null)
        {
            var slot = new EventSlot(eventType, shortName);

            slot.Initialize();

            _slotsByEventNames.Add(eventType.Name, slot);

            if (!_slotsByGroups.ContainsKey(group))
            {
                _slotsByGroups.Add(group, new List <EventSlot> {
                    slot
                });
            }
            else
            {
                _slotsByGroups[group].Add(slot);
            }
        }