Inheritance: EventArgs, ICancellableEvent
コード例 #1
0
ファイル: Server.Events.cs プロジェクト: fragmer/fCraft
 internal static bool RaiseSessionConnectingEvent( IPAddress ip ) {
     var h = SessionConnecting;
     if( h == null ) return false;
     var e = new SessionConnectingEventArgs( ip );
     h( null, e );
     return e.Cancel;
 }
コード例 #2
0
ファイル: Server.Events.cs プロジェクト: fragmer/fCraft
 internal static bool RaiseSessionConnectingEvent( [NotNull] IPAddress ip ) {
     if( ip == null ) throw new ArgumentNullException( "ip" );
     var h = SessionConnecting;
     if( h == null ) return false;
     var e = new SessionConnectingEventArgs( ip );
     h( null, e );
     return e.Cancel;
 }