Exemple #1
0
		public static new ThreadedServer Start(Action<Connection> connected, uint port)
		{
			ThreadedServer result = new ThreadedServer(connected);
			if (!result.Start(port))
			{
				result.Dispose();
				result = null;
			}
			return result;
		}
Exemple #2
0
		public static new ThreadedServer Start(Action<Connection> connected, Uri.Endpoint endPoint)
		{
			ThreadedServer result = new ThreadedServer(connected);
			if (!result.Start(endPoint))
			{
				result.Dispose();
				result = null;
			}
			return result;
		}