コード例 #1
0
 /// <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));
 }
コード例 #2
0
ファイル: ScsServerFactory.cs プロジェクト: gfazzola/scs
 /// <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();
 }
コード例 #3
0
ファイル: ScsServerFactory.cs プロジェクト: gfazzola/scs
 /// <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);
 }
コード例 #4
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 IScsClient CreateClient(ScsEndPoint endpoint)
 {
     return endpoint.CreateClient();
 }
コード例 #5
0
ファイル: ScsClientFactory.cs プロジェクト: gfazzola/scs
 /// <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);
 }
コード例 #6
0
ファイル: ScsServiceBuilder.cs プロジェクト: gfazzola/scs
 public static IScsServiceApplication CreateSecureService(ScsEndPoint endPoint, X509Certificate2 serverCert, List<X509Certificate2> clientCerts)
 {
     return new ScsServiceApplication(ScsServerFactory.CreateSecureServer(endPoint, serverCert, clientCerts));
 }