Пример #1
0
        public static IDisposable MethodCall <TEntity, TRelatedEntity>(Type type, MethodCallParameters parameters = null, [CallerMemberName] string methodName = "")
        {
            var method = MethodCalls.MethodSignature(type, typeof(TEntity), typeof(TRelatedEntity), methodName, parameters);
            var result = LogContext.PushProperty("Method", method);

            Log.Verbose(method);
            return(result);
        }
 public static IDisposable MethodCall <T, TEntity, TRelatedEntity>(this ILogger <T> logger, Type type, MethodCallParameters parameters = null, [CallerMemberName] string methodName = "")
 {
     logger.LogDebug(MethodCalls.MethodSignature(type, typeof(TEntity), typeof(TRelatedEntity), methodName, parameters));
     return(SAEONLogs.MethodCall <TEntity, TRelatedEntity>(type, parameters, methodName));
 }
 public static IDisposable MethodCall(this ILogger logger, Type type, MethodCallParameters parameters = null, [CallerMemberName] string methodName = "")
 {
     logger.LogDebug(MethodCalls.MethodSignature(type, methodName, parameters));
     return(SAEONLogs.MethodCall(type, parameters, methodName));
 }