//********************************************************************* /// /// <summary> /// This method starts the thread /// </summary> /// <param name="eventLog"></param> /// //********************************************************************* public static void StartAsync(EventLog eventLog) { _eventLog = eventLog; if (null == _syncWorker) { _syncWorker = new SyncWorker(); } _syncWorker._workerThread = new Thread(_syncWorker.Worker); _syncWorker._azureThread = new Thread(_syncWorker.AzureWorker); _syncWorker._workerThread.Start(); _syncWorker._azureThread.Start(); }
protected void Application_Start() { WebApiConfig.Register(GlobalConfiguration.Configuration); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); SyncWorker.StartAsync(Log); }