You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently it is not possible to include information about the resource when logging errors in an OnError error handler of ResourceManager.ExecuteAction, because it only gets the exception and the attemptCount.
_resourceManager.ExecuteAction((serverOptions,_)=>doSomething(serverOptions),(attemptCount,_)=>attemptCount<=3,(exception,attemptCount,serverOptions)=>_logger.LogError(exception,"Failed to connect to server {Host}:{Port}: {Message}",serverOptions.Host,serverOptions.Port,exception.Message));
The text was updated successfully, but these errors were encountered:
Feature request
Type
Is your feature request related to a problem?
Currently it is not possible to include information about the resource when logging errors in an
OnError
error handler ofResourceManager.ExecuteAction
, because it only gets theexception
and theattemptCount
.Describe the solution you'd like
An extra
resource
parameter inOnError
.Example:
The text was updated successfully, but these errors were encountered: