// ----------------------------------------------------------------------------------------- /// <summary> /// Fetches a list of Subscriber Objects in the Event that was sent /// </summary> /// <param name="TranzmitEvent">The event which we are querying for Subscribers</param> /// <returns>List of Subscriber Objects</returns> public List <object> GetSubscribersInSentEvent(EventData.TranzmitDelegate TranzmitEvent) { List <object> result = new List <object>(); if (TranzmitEvent != null) { foreach (Delegate subscriber in TranzmitEvent.GetInvocationList()) { result.Add(subscriber.Target); } } return(result); }
/// <summary> /// Called when an Event has been sent by an Object via Tranzmit. The information here will provide an insight into whether the send was successful or not. /// </summary> /// <param name="eventName">The name of the Event sent.</param> public void Broadcast_Event_Sent(object source, DeliveryStatuses status, List <Errors> errors, EventNames eventName, Type requiredDataType, Type providedDataType, EventData.TranzmitDelegate tranzmitDelegate) { // Subscribers? if (tranzmitDelegate != null && EventSent != null) { EventSent(source, status, errors, eventName, requiredDataType, providedDataType, tranzmitDelegate); } }