Ejemplo n.º 1
0
        public override bool OnStart()
        {
            // Set the maximum number of concurrent connections
            ServicePointManager.DefaultConnectionLimit = 12;
            SetupApplicationInsights();
            _container      = IoC.Initialize();
            _logger         = _container.GetInstance <ILog>();
            _commonSettings = _container.GetInstance <IWorkerRoleSettings>();

            // For information on handling configuration changes see the MSDN topic at http://go.microsoft.com/fwlink/?LinkId=166357.
            var result = base.OnStart();

            _logger.Info("Indexer worker role started.");

            return(result);
        }
Ejemplo n.º 2
0
        public override bool OnStart()
        {
            // Set the maximum number of concurrent connections
            ServicePointManager.DefaultConnectionLimit = 12;

            _container      = IoC.Initialize();
            _logger         = _container.GetInstance <ILog>();
            _commonSettings = _container.GetInstance <IWorkerRoleSettings>();

            StartServiceBusEndpoint().GetAwaiter().GetResult();


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

            bool result = base.OnStart();

            _logger.Debug("Worker role has been started");

            return(result);
        }