Provides data for IPBanList.AddingIPBan and RemovingIPBan events. Cancelable.
Наследование: IPBanEventArgs, ICancelableEvent
Пример #1
0
 static bool RaiseRemovingIPBanEvent([NotNull] IPBanInfo info) {
     if (info == null) throw new ArgumentNullException("info");
     var h = RemovingIPBan;
     if (h == null) return false;
     var e = new IPBanCancelableEventArgs(info);
     h(null, e);
     return e.Cancel;
 }
Пример #2
0
 static bool RaiseRemovingIPBanEvent( [NotNull] IPBanInfo info ) {
     var e = new IPBanCancelableEventArgs( info );
     RemovingIPBanEvent.Raise( e );
     return !e.Cancel;
 }