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
publicclassCreateCommandHandler<T>:IRequestHandler<CreateCommand<T>,bool>whereT:Entity,new(){publicTask<bool>Handle(CreateCommand<T>request,CancellationTokencancellationToken){/* Works with T and produces return value */}}
InvalidOperationException: Handler was not found for request of type. Register your handlers with the container. See the samples in GitHub for examples.
Basically what I want is to have basic operations to work using only one generic handler for each type (CRUD). That way I could just describe the commands for each entity instead of writing a handler too.
PS.: I'm using AutoFac and I'm aware it could be a limitation, although I have searched and found this solution (Related: #96; #69).
The text was updated successfully, but these errors were encountered:
PS.: I'm doing all the AutoFac registration manually since it's just easier to be explicit for each custom configuration than implement a custom scanner for generic cases as seen here (for StructureMap).
Hi! I'm trying to do something along the lines of:
Generic commands:
Generic handler
Specific command:
Today I'm getting:
Basically what I want is to have basic operations to work using only one generic handler for each type (CRUD). That way I could just describe the commands for each entity instead of writing a handler too.
PS.: I'm using AutoFac and I'm aware it could be a limitation, although I have searched and found this solution (Related: #96; #69).
The text was updated successfully, but these errors were encountered: