Created
March 24, 2020 08:01
-
-
Save wullemsb/b72b54eb3e80733e53fa3e7880dce3fd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class BenchmarkDecorator:ILogger | |
{ | |
private readonly ILogger _decoratedLogger; | |
public BenchmarkDecorator(ILogger logger) | |
{ | |
_decoratedLogger=logger; | |
} | |
public async Task LogMessage(string message) | |
{ | |
//Add your benchmark logic here | |
await _decoratedLogger.LogMessage(message); | |
//And here :-) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment