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
I have in my Blazor Web Assembly application a validator defined as follows:
public class Validator : AbstractValidator
{
public Validator(WSRequester wsRequester, Action activateSpinner, Action deactivateSpinner)
{
var loc = new OrderMessagesLocalizer();
One of the goal of my validator is for a specific scenario, I need to call a web service to validate an order
number. For this specific scenario, I need to display a spinner before the call and hide the spinner after the call.
When the application reach the validator constructor, I received the following error message:
System.InvalidOperationException: Unable to resolve service for type 'System.Action`1[System.String]' while attempting to activate 'OrderEntryUI.Models.OrderGeneralModel+Validator'.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I have in my Blazor Web Assembly application a validator defined as follows:
public class Validator : AbstractValidator
{
public Validator(WSRequester wsRequester, Action activateSpinner, Action deactivateSpinner)
{
var loc = new OrderMessagesLocalizer();
}
One of the goal of my validator is for a specific scenario, I need to call a web service to validate an order
number. For this specific scenario, I need to display a spinner before the call and hide the spinner after the call.
When the application reach the validator constructor, I received the following error message:
System.InvalidOperationException: Unable to resolve service for type 'System.Action`1[System.String]' while attempting to activate 'OrderEntryUI.Models.OrderGeneralModel+Validator'.
Regards
Al
Beta Was this translation helpful? Give feedback.
All reactions