Example #1
0
 protected virtual async Task OnEnter(ProxyMethodInfo info)
 {
     foreach (var arg in info.Args)
     {
         await _validator.ValidateAsync(arg);
     }
 }
Example #2
0
 protected virtual async Task OnException(Exception ex, ProxyMethodInfo info)
 {
     _logger.LogError(ex, "Execution of method {methodName} failed with args: {methodArgs}", info.Name, info.Args);
 }
Example #3
0
 protected virtual async Task OnMethodExecuted(ProxyMethodInfo info, object?methodResult = null)
 {
 }