Inheritance: IPBanEventArgs, ICancellableEvent
コード例 #1
0
ファイル: IPBanList.cs プロジェクト: GMathioud/MyCraft
 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
ファイル: IPBanList.cs プロジェクト: fragmer/fCraft
 static bool RaiseRemovingIPBanEvent( IPBanInfo info ) {
     var h = RemovingIPBan;
     if( h == null ) return false;
     var e = new IPBanCancellableEventArgs( info );
     h( null, e );
     return e.Cancel;
 }