public async Task Start(int showId) { StaticQueue.ClearQueue(); StaticQueue.Enable(); if (showId < 0) { showId = await this.showService.GetMaxShowId().ConfigureAwait(false); showId += 1; } StaticQueue.AddShowIds(showId); // assume the worker is continuously running and will pick this up shortly. }
#pragma warning disable CA1822 // Mark members as static public void Stop() #pragma warning restore CA1822 // Mark members as static { StaticQueue.ClearQueue(); }