Skip to content

Instantly share code, notes, and snippets.

@dcomartin
Created Sep 9, 2021
Embed
What would you like to do?
using System;
using System.Collections.Generic;
namespace Demo.EventSourced
{
public interface IEvent { }
public record Dispatched(int ShipmentId, IEnumerable<ShipmentStop> Stops, DateTime Start) : IEvent;
public record Arrived(int StopId, DateTime Arrival) : IEvent;
public record PickedUp(int StopId, DateTime Loaded) : IEvent;
public record Delivered(int StopId, DateTime Delivery) : IEvent;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment