Пример #1
0
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main()
        {
#if DEBUG
            var container = ServiceStart.SimpleInjectorInitializer.Initialize();
            PresenceServiceInitializer.configure(container);
            while (true)
            {
            }
#else
            ServiceBase[] ServicesToRun;
            ServicesToRun = new ServiceBase[]
            {
                new PresenceService()
            };
            ServiceBase.Run(ServicesToRun);
#endif
        }
Пример #2
0
        public void initializeService()
        {
            var container = SimpleInjectorInitializer.Initialize();

            PresenceServiceInitializer.configure(container);
        }