コード例 #1
0
 /// <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());
 }
コード例 #2
0
 /// <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());
 }
コード例 #3
0
 /// <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)));
 }
コード例 #4
0
 public TaskUtility(TaskTypeEnum taskType, BaseEndPoint endPoint, ITaskCreator taskCreator)
 {
     TaskType    = taskType;
     EndPoint    = endPoint;
     TaskCreator = taskCreator;
 }