Beispiel #1
0
 static void Main()
 {
     NinjectConfiguration.Config();
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     Application.Run(new KioskSetting());
 }
Beispiel #2
0
        public static void Main(string[] args)
        {
            AutoMapperConfiguration.Config();
            NinjectConfiguration.Config();
#if DEBUG
            Process process = ResolverFactory.GetService <Process>();
            process.Start();
            Console.ReadKey();
#else
            ServiceBase[] ServicesToRun;
            ServicesToRun = new ServiceBase[] { new SelfHostService() };
            ServiceBase.Run(ServicesToRun);
#endif
        }
Beispiel #3
0
        public static void Main(string[] args)
        {
            AutoMapperConfiguration.Config();
            NinjectConfiguration.Config();
#if DEBUG
            using (Microsoft.Owin.Hosting.WebApp.Start <SignalRConfiguration>(SettingsConfigurationSignalR.DOMAIN_SERVER))
            {
                Console.WriteLine("OwinServer Started....");
                Console.ReadKey();
            }
#else
            ServiceBase[] ServicesToRun;
            ServicesToRun = new ServiceBase[] { new SelfHostService() };
            ServiceBase.Run(ServicesToRun);
#endif
        }