示例#1
0
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();
            GlobalConfiguration.Configure(WebApiConfig.Register);
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);

            IntegrationSettings.ReadSettings();

            LogManager.GetCurrentClassLogger().Log(LogLevel.Info, "Started callback receiver");
        }
示例#2
0
        public static void Main()
        {
            try
            {
                IntegrationSettings.ReadSettings();

#if DEBUG
                RunInCommandLineMode();
#else
                ServiceBase.Run(new BulksignService());
#endif
            }
            catch (Exception ex)
            {
                log.Error(ex);
            }
        }