AzureWebFarm.WebFarmRole.OnStart C# (CSharp) Method

OnStart() public method

public OnStart ( ) : void
return void
        public void OnStart()
        {
            try
            {
                Configure();

                var syncService = Container.Resolve<ISyncService>();
                var webDeployService = Container.Resolve<IWebDeployService>();
                Container.Resolve<IBackgroundWorkerService>(); // This registers event handlers after activation - resolving is enough

                syncService.SyncOnce();
                webDeployService.Start();
            }
            catch (Exception e)
            {
                _logger.Error("Uncaught exception in OnStart()", e);
                DiagnosticsHelper.WriteExceptionToBlobStorage(e);
                throw;
            }
        }