Exemple #1
0
        /// <summary>
        /// Shuts down the <see cref="IReporter"/> and <see cref="ISampler"/>.
        /// </summary>
        public async Task CloseAsync(CancellationToken cancellationToken)
        {
            if (!_isClosed)
            {
                await Reporter.CloseAsync(cancellationToken).ConfigureAwait(false);

                Sampler.Close();
                _isClosed = true;
            }
        }