microsoft/healthcare-shared-components

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
1.0.0-1.0.79

Branches

Tags

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

Clone

HTTPS

Download ZIP

src/Microsoft.Health.Core/ActionTimerExtensions.cs

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