public override bool OnStart()
        {
            ServicePointManager.DefaultConnectionLimit = 12;


            bool result = base.OnStart();

            Trace.TraceInformation("TicketerProcessor has been started");

            _ticketCtx = new AzureBootCampTicketsContext();
            _cache     = new CacheService();
            _azureCtx  = new AzureBootCampTicketsCloudContext(_cache);

            return(result);
        }
Ejemplo n.º 2
0
        public override bool OnStart()
        {
            // 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("TicketerProcessor has been started");

            _ticketCtx = new AzureBootCampTicketsContext();
            _cache     = new CacheService();
            _azureCtx  = new AzureBootCampTicketsCloudContext(_cache);

            return(result);
        }