예제 #1
0
 protected virtual void LogRequest(object request, OperationLogSettings operationLogSettings)
 {
     if (operationLogSettings.IsLogging)
     {
         _logger.Log(operationLogSettings.LogLevel, "{request}", request);
     }
 }
예제 #2
0
 protected virtual void LogValidation(IEnumerable <ValidationResult> validationResults,
                                      OperationLogSettings operationLogSettings)
 {
     if (operationLogSettings.IsLogging)
     {
         _logger.Log(operationLogSettings.LogLevel, "Validation failed");
     }
 }
        public InvokeResultSettings()
        {
            ValidationLogSettings = new OperationLogSettings
            {
                IsLogging = true,
                LogLevel  = LogLevel.Debug
            };

            LogRequestLogSettings = new OperationLogSettings
            {
                IsLogging = true,
                LogLevel  = LogLevel.Debug
            };

            InvokeFunctionLogSetttings = new InvokeFunctionLogSetttings
            {
                LogInvokeResult = LogInvokeResult.IsFail,
                LogLevel        = LogLevel.Debug
            };
        }