Skip to content

Instantly share code, notes, and snippets.

@dcomartin

dcomartin/Events.cs Secret

Created Feb 17, 2021
Embed
What would you like to do?
public interface IEvent {}
public record ProductShipped(string Sku, int Quantity, DateTime DateTime) : IEvent;
public record ProductReceived(string Sku, int Quantity, DateTime DateTime) : IEvent;
public record InventoryAdjusted(string Sku, int Quantity, string Reason, DateTime DateTime) : IEvent;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment