/// <summary> /// Primary run routine /// </summary> public override void Run() { Alerts.Information("WorkerRole is running"); try { this.RunAsync(this.cancellationTokenSource.Token).Wait(); } catch (Exception e) { Alerts.Exception(e); } finally { this.runCompleteEvent.Set(); } }