Beispiel #1
0
        /// <inheritdoc />
        protected override async Task <BoolResult> ShutdownCoreAsync(OperationContext operatonContext)
        {
            await _pinContext.DisposeAsync();

            var statsResult = await Store.GetStatsAsync(operatonContext);

            if (statsResult.Succeeded)
            {
                statsResult.CounterSet.LogOrderedNameValuePairs(s => Tracer.Debug(operatonContext, s));
            }

            return(BoolResult.Success);
        }
Beispiel #2
0
        /// <inheritdoc />
        protected override async Task <BoolResult> ShutdownCoreAsync(OperationContext operationContext)
        {
            await _pinContext.DisposeAsync();

            var statsResult = await Store.GetStatsAsync(operationContext);

            if (statsResult.Succeeded)
            {
                Tracer.TraceStatisticsAtShutdown(operationContext, statsResult.CounterSet);
            }

            return(BoolResult.Success);
        }