microsoft/healthcare-shared-components
Publicmirrored from https://github.com/microsoft/healthcare-shared-componentsAvailable
src/Microsoft.Health.Core/ActionTimerExtensions.cs
16lines · modecode
| 1 | // ------------------------------------------------------------------------------------------------- |
| 2 | // Copyright (c) Microsoft Corporation. All rights reserved. |
| 3 | // Licensed under the MIT License (MIT). See LICENSE in the repo root for license information. |
| 4 | // ------------------------------------------------------------------------------------------------- |
| 5 | |
| 6 | using Microsoft.Extensions.Logging; |
| 7 | |
| 8 | namespace Microsoft.Health.Core; |
| 9 | |
| 10 | public static class ActionTimerExtensions |
| 11 | { |
| 12 | public static ActionTimer BeginTimedScope(this ILogger logger, string scopeName) |
| 13 | { |
| 14 | return new ActionTimer(logger, scopeName); |
| 15 | } |
| 16 | } |
| 17 | |