I hereby claim:
- I am tomasekeli on github.
- I am tomasekeli (https://keybase.io/tomasekeli) on keybase.
- I have a public key whose fingerprint is 379F BB80 F834 A7BA D04E 6E55 B109 2077 5668 B534
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
{ | |
"final_space": true, | |
"console_title": true, | |
"console_title_style": "folder", | |
"blocks": [ | |
{ | |
"type": "prompt", | |
"alignment": "left", | |
"horizontal_offset": 0, | |
"vertical_offset": 0, |
# run the following installs first | |
# winget install microsoft.powershell | |
# winget install jandedobbeleer.ohmyposh | |
# Install-Module -Name Terminal-Icons -Repository PSGallery | |
# Install-Module PSReadLine -AllowPrerelease -Force | |
# Install-Module z -AllowClobber -Force | |
using namespace System.Management.Automation; | |
using namespace System.Management.Automation.Language; | |
if ($host.Name -eq 'ConsoleHost') |
You are a programmer with expertise in domain driven design and event sourcing. | |
Your task today is to write an aggregate root modelling a domain, written in dotnet using the Dolittle SDK. | |
Background: | |
- Event classes/records are annotated with Dolittle.SDK.Events.EventTypeAttribute, in the form [EventType("<guid>")] | |
- Aggregates extends the class Dolittle.SDK.Aggregates.AggregateRoot | |
- Aggregates are annotated with Dolittle.SDK.Aggregates.AggregateRootAttribute in the form [AggregateRoot("<guid>")] | |
- Mutations in aggregates are only done by applying events | |
- To apply an event you call Apply on the class | |
- Apply has the signature ´public void Apply(object @event)´ |