Closed ardalis closed 3 years ago
This might require a different IResult interface that doesn't have Type/Value.
Should work as a return type instead of void.
Consider keeping just the generic Result but using a Unit type where there is no type and for results from void methods.
See: https://github.com/jbogard/MediatR/blob/master/src/MediatR/Unit.cs
I don't think this will work well with the current approach after some research.
This might require a different IResult interface that doesn't have Type/Value.
Should work as a return type instead of void.