Exemplo n.º 1
0
        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.
        }
Exemplo n.º 2
0
#pragma warning disable CA1822 // Mark members as static
        public void Stop()
#pragma warning restore CA1822 // Mark members as static
        {
            StaticQueue.ClearQueue();
        }