microsoft/healthcare-shared-components

Public

mirrored from https://github.com/microsoft/healthcare-shared-componentsAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
main

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

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
6using Microsoft.Extensions.Logging;
7
8namespace Microsoft.Health.Core;
9
10public static class ActionTimerExtensions
11{
12 public static ActionTimer BeginTimedScope(this ILogger logger, string scopeName)
13 {
14 return new ActionTimer(logger, scopeName);
15 }
16}
17