I was wondering if it was possible to see how many methods, or how many times an event has been subscribed through, either by checking inside the event’s class, or outside the class?
Example code:
//Example code that subscribes to event
public void AddEvents()
{
EventManager.SuccessfulEvent += OnSucceeded;
EventManager.FailedEvent += OnFailed;
EventManager.CancelledEvent += OnCanceled;
}
public void CheckHowManySubscriptions()
{
//Pseudo code, b/c I'm not sure what to do
//This code would tell me that one method has been
//subscribed to Successful Event
HowMany(EventManager.SuccessfulEvent);
}