示例#1
0
        private async Task RunAsync(CancellationToken cancellationToken)
        {
            // TODO: Replace the following with your own logic.
            while (!cancellationToken.IsCancellationRequested)
            {
                Trace.TraceInformation("Working");

                var service = new FileUploadService(new Logger());
                await service.CleanupOldBlobs(DateTimeOffset.Now.AddDays(-1));

                await Task.Delay(1000 * 60 * 30);
            }
        }