protected virtual void RaiseSubscriptionEvent(Subscription subscription, bool deleted)
{
SubscriptionEventHandler handler = null;
lock (m_eventLock)
{
handler = m_SubscriptionCreated;
if (deleted)
{
handler = m_SubscriptionDeleted;
}
}
if (handler != null)
{
try
{
handler(subscription, deleted);
}
catch (Exception e)
{
Utils.Trace(e, "Subscription event handler raised an exception.");
}
}
}
#endregion