Esempio n. 1
0
        /// <summary>
        /// calls at start
        /// </summary>
        /// <returns></returns>
        public override bool OnStart()
        {
            ConfigureDiagnostics();
            AutoMapperNotificationManager.Run();
            CommonFunctions.GetAllCultureObject();
            // Set the maximum number of concurrent connections
            ServicePointManager.DefaultConnectionLimit = 12;

            // For information on handling configuration changes
            // see the MSDN topic at http://go.microsoft.com/fwlink/?LinkId=166357.

            return(base.OnStart());
        }
        public override bool OnStart()
        {
            ConfigureDiagnostics();
            AutoMapperNotificationManager.Run();
            WorkerRoleCommonFunctions.GetAllCultureObject();
            // Set the maximum number of concurrent connections
            ServicePointManager.DefaultConnectionLimit = 12;
            // For information on handling configuration changes
            // see the MSDN topic at http://go.microsoft.com/fwlink/?LinkId=166357.

            bool result = base.OnStart();

            Trace.TraceInformation("Worker Role RecentActivity has been started");
            return(result);
        }