public override void FindSessions(SessionType sessionType, int maxLocalPlayers, SessionProperties sessionProperties)
{
if (CurrentSession != null)
throw new CoreException("Session is already running");
if (sessionType == SessionType.WideAreaNetwork)
throw new NotImplementedException("Use FindSessionsWan method instead");
// Create a temporary session to listen for discovery messages
CurrentSession = new LidgrenSession(sessionType, maxLocalPlayers, 0, sessionProperties);
_networkSessionLocker = FindingSessions;
LidgrenSession.BeginFind(sessionType, maxLocalPlayers, sessionProperties, OnLidgrenSessionsFound, _networkSessionLocker);
}