fCraft.Server.RaiseSessionConnectingEvent C# (CSharp) Method

RaiseSessionConnectingEvent() static private method

static private RaiseSessionConnectingEvent ( [ ip ) : bool
ip [
return bool
        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;
        }