Пример #1
0
		public static new bool Run(Action<Connection> connected, uint port)
		{
			bool result;
			using (ThreadedServer server = new ThreadedServer(connected))
				result = server.Run(port);
			return result;
		}
Пример #2
0
		public static new bool Run(Action<Connection> connected, Uri.Endpoint endPoint)
		{
			bool result;
			using (ThreadedServer server = new ThreadedServer(connected))
				result = server.Run(endPoint);
			return result;
		}
Пример #3
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;
		}
Пример #4
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;
		}