/// <summary> /// Fire one of the pre/post/other delegates. /// Delegate exceptions propagate, to be handled by the /// calling code. /// </summary> private void FireDelegate(ToggleServerHandler method) { if (!object.ReferenceEquals(method, null)) { method(); } }
private void FireDelegate(ToggleServerHandler method) { if (!object.ReferenceEquals(method, null)) { try { method(); } catch (Exception e) { EventLogger.Log(e); } } }