Skip to content

Instantly share code, notes, and snippets.

@dcomartin
Created September 9, 2021 21:12
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save dcomartin/fba2dcd05e1441274c4eaeeee63f6c21 to your computer and use it in GitHub Desktop.
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