Provides data for IPBanList.AddingIPBan and RemovingIPBan events. Cancelable.
Inheritance: IPBanEventArgs, ICancelableEvent
Example #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;
 }
Example #2
0
 static bool RaiseRemovingIPBanEvent( [NotNull] IPBanInfo info ) {
     var e = new IPBanCancelableEventArgs( info );
     RemovingIPBanEvent.Raise( e );
     return !e.Cancel;
 }