コード例 #1
0
 static void Main(string[] args)
 {
     var runner = new HostRunner("DemoService_QuickStartApi", new ListenerInfo
     {
         Port = 8053
     });
     var exit = runner.RunWebService();
 }
コード例 #2
0
 static void Main(string[] args)
 {
     var runner = new HostRunner <CustomStartup>("DemoService", new ListenerInfo
     {
         Port = 8050
     },
                                                 new ListenerInfo
     {
         AllowInvalidCert = true,
         Port             = 8051,
         SslCertStoreName = StoreName.My,
         SslCertSubject   = "CN=ec2-3-104-124-78.ap-southeast-2.compute.amazonaws.com",
         UseTls           = true
     });
     var exit = runner.RunWebService(LogEventLevel.Debug);
 }