/// <summary> /// Creates a new SCS Service application using an EndPoint. /// </summary> /// <param name="endPoint">EndPoint that represents address of the service</param> /// <returns>Created SCS service application</returns> public static IScsServiceApplication CreateService(ScsEndPoint endPoint) { return new ScsServiceApplication(ScsServerFactory.CreateServer(endPoint)); }
/// <summary> /// Creates a new SCS Server using an EndPoint. /// </summary> /// <param name="endPoint">Endpoint that represents address of the server</param> /// <returns>Created TCP server</returns> public static IScsServer CreateServer(ScsEndPoint endPoint) { return endPoint.CreateServer(); }
/// <summary> /// SSL /// </summary> /// <param name="endPoint"></param> /// <param name="cert"></param> /// <returns></returns> public static IScsServer CreateSecureServer(ScsEndPoint endPoint, X509Certificate2 serverCert, List<X509Certificate2> clientCerts) { return endPoint.CreateSecureServer(serverCert, clientCerts); }
/// <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 IScsClient CreateClient(ScsEndPoint endpoint) { return endpoint.CreateClient(); }
/// <summary> /// SSL /// </summary> /// <param name="endpoint"></param> /// <param name="serverCert"></param> /// <param name="clientCert"></param> /// <param name="nombreServerCert"></param> /// <returns></returns> public static IScsClient CreateSecureClient(ScsEndPoint endpoint, X509Certificate2 serverCert, X509Certificate2 clientCert, string nombreServerCert) { return endpoint.CreateSecureClient(serverCert, clientCert, nombreServerCert); }
public static IScsServiceApplication CreateSecureService(ScsEndPoint endPoint, X509Certificate2 serverCert, List<X509Certificate2> clientCerts) { return new ScsServiceApplication(ScsServerFactory.CreateSecureServer(endPoint, serverCert, clientCerts)); }