/// <summary> /// Creates a new Server using an EndPoint. /// </summary> /// <param name="endPoint">Endpoint that represents address of the server.</param> /// <returns>Created TCP server</returns> public static IServer CreateServer(BaseEndPoint endPoint) { return(endPoint.CreateServer()); }
/// <summary> /// Creates a new client to connect to a server using an end point. /// </summary> /// <param name="endpoint">End point of the server to connect it</param> /// <returns>Created TCP client</returns> public static IClient CreateClient(BaseEndPoint endpoint) { return(endpoint.CreateClient()); }
/// <summary> /// Creates a new client to connect to a server using an end point. /// </summary> /// <param name="endpointAddress">End point address of the server to connect it</param> /// <returns>Created TCP client</returns> public static IClient CreateClient(string endpointAddress) { return(CreateClient(BaseEndPoint.CreateEndPoint(endpointAddress))); }
public TaskUtility(TaskTypeEnum taskType, BaseEndPoint endPoint, ITaskCreator taskCreator) { TaskType = taskType; EndPoint = endPoint; TaskCreator = taskCreator; }