Created
August 18, 2020 09:30
-
-
Save zHaytam/3c658602699e84c99b5af687f56be29e to your computer and use it in GitHub Desktop.
This file contains hidden or 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 LoggingInterceptor : IInterceptor | |
{ | |
public void Intercept(IInvocation invocation) | |
{ | |
Console.WriteLine($"Calling method {invocation.TargetType}.{invocation.Method.Name}."); | |
invocation.Proceed(); // continue | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment