Skip to content

Supporting C#9 init-only properties for Commands #1324

@zlavoie

Description

@zlavoie

Is your feature request related to a problem? Please describe.
C#9 came out with records and init-only properties. So now when trying to implement records, I am limited to using 'set' in IRequest.

Describe the solution you'd like
If the Id of IRequest can be init instead of set, then it can be used in a record and the comand can be fired to the handler.

Describe alternatives you've considered
I could use set, and then that is the only property that is NOT immutable, which starts to violate the purpose of a record in C#9.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions