private async Task RunAsync(CancellationToken cancellationToken) { Trace.WriteLine("---------------------------------------"); // TODO: Replace the following with your own logic. while (!cancellationToken.IsCancellationRequested) { string msg = queueHelper.GetFromQueue(); if (msg == null) { Trace.WriteLine("Nema poruke za novi film"); } else { Trace.WriteLine(msg); Film f = new Film(msg, blobHelper.DownladPhotoURLFromBlob(msg)); tableHelper.AddOrReplaceFilm(f); } Trace.WriteLine("---------------------------------------"); Trace.TraceInformation("Working"); await Task.Delay(3000); } }