...
Code Block | ||
---|---|---|
| ||
using System.Security.Cryptography.X509Certificates; using Connexion.Gateway.Api; namespace GatewayApiClientTest { class Program { static void Main(string[] args) { // load the certificate to pass to the gateway api var certificate = new X509Certificate2(@"c:\gatewayClient\NickLaptop.cer"); // create a proxy to the GW using (var proxy = GatewayApiProxyGatewayApiProxyFactory.CreateProxy("192.168.3.19", 8085, certificate)) { // test the connection proxy.ServiceMethods.Ping(); } } } } |
...