This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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