public Task RefreshSettingsAsync()
        {
            lock (sync)
            {
                writerProvider?.DropCooldown();
            }

            return(Task.CompletedTask);
        }
Esempio n. 2
0
        public Task RefreshSettingsAsync()
        {
            writerProvider.DropCooldown();

            // NOTE: We have to flush all events so that event writer refreshes its settings
            // because if event writer is currently processing some events with old settings, then new events that are
            // put to the bounded queue will be processed with old settings as well.
            return(FlushAsync());
        }