Result icon indicating copy to clipboard operation
Result copied to clipboard

Add Unit Type to Support Void Methods and requests for non-generic Result types

Open ardalis opened this issue 3 years ago • 0 comments

MediatR has the same problems with returning things from void methods, and they've solved for years by using a Unit type: https://github.com/jbogard/MediatR/blob/master/src/MediatR.Contracts/Unit.cs

Should we use a similar type included in this library for this purpose, and document its usage?

See related issues:

  • #77
  • #65
  • #41

What do you think? Comment or add an appropriate emoji.

ardalis avatar Feb 09 '22 23:02 ardalis