12345678910111213141516171819202122232425262728 |
- using Hik.Api;
- using Nancy.Hosting.Self;
- namespace xicheji
- {
- internal static class Program
- {
- public static MainForm MainForm { get; set; }
- /// <summary>
- /// The main entry point for the application.
- /// </summary>
- [STAThread]
- static void Main()
- {
- // To customize application configuration such as set high DPI settings or default font,
- // see https://aka.ms/applicationconfiguration.
- ApplicationConfiguration.Initialize();
- HikApi.Initialize();
- new NancyHost(new Uri($"http://localhost:{ConfigHelper.GetConfig().ServicePort}/")).Start();
- MainForm = new MainForm();
- Application.Run(MainForm);
- }
- }
- }
|