Beispiel #1
0
        public string GetEventInfoString(PublicEventImpl publicEventImpl)
        {
            EventManager em;

            events.TryGetValue(publicEventImpl, out em);
            return(em != null?em.Action.MethodInformationToString() : "NULL");
        }
Beispiel #2
0
        public PublicEvent Create([NotNull] Action action, TimeSpan invocationMinDelay)
        {
            if (action == null)
            {
                throw new ArgumentNullException(nameof(action));
            }
            var e = new PublicEventImpl(this);

            events.TryAdd(e, new EventManager(e, invocationMinDelay, action));
            return(e);
        }