Inheritance: IPBanEventArgs, ICancellableEvent
示例#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 IPBanCancellableEventArgs( info );
     h( null, e );
     return e.Cancel;
 }
示例#2
0
 static bool RaiseRemovingIPBanEvent( IPBanInfo info ) {
     var h = RemovingIPBan;
     if( h == null ) return false;
     var e = new IPBanCancellableEventArgs( info );
     h( null, e );
     return e.Cancel;
 }