Skip to content

Commit

Permalink
Update to FsCodec 2.0.0-rc3
Browse files Browse the repository at this point in the history
  • Loading branch information
bartelink committed Mar 10, 2020
1 parent aee5367 commit f950013
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions equinox-fc/Domain/Allocation.fs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ let streamName allocationId = FsCodec.StreamName.create Category (AllocationId.t
// NOTE - these types and the union case names reflect the actual storage formats and hence need to be versioned with care
module Events =

let [<Literal>] CategoryId = "Allocation"
let (|For|) id = FsCodec.StreamName.create CategoryId (AllocationId.toString id)

type Commenced = { ticketIds : TicketId[] }
type Tickets = { ticketIds : TicketId[] }
type Allocated = { ticketIds : TicketId[]; listId : TicketListId }
Expand Down
3 changes: 3 additions & 0 deletions equinox-fc/Domain/Allocator.fs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ let streamName allocatorId = FsCodec.StreamName.create Category (AllocatorId.toS
// NOTE - these types and the union case names reflect the actual storage formats and hence need to be versioned with care
module Events =

let [<Literal>] CategoryId = "Allocator"
let (|For|) id = FsCodec.StreamName.create CategoryId (AllocatorId.toString id)

type Commenced = { allocationId : AllocationId; cutoff : DateTimeOffset }
type Completed = { allocationId : AllocationId; reason : Reason }
and [<Newtonsoft.Json.JsonConverter(typeof<FsCodec.NewtonsoftJson.TypeSafeEnumConverter>)>]
Expand Down
3 changes: 3 additions & 0 deletions equinox-fc/Domain/Ticket.fs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ let streamName ticketId = FsCodec.StreamName.create Category (TicketId.toString
// NOTE - these types and the union case names reflect the actual storage formats and hence need to be versioned with care
module Events =

let [<Literal>] CategoryId = "Ticket"
let (|For|) id = FsCodec.StreamName.create CategoryId (TicketId.toString id)

type Reserved = { allocatorId : AllocatorId }
type Allocated = { allocatorId : AllocatorId; listId : TicketListId }

Expand Down
3 changes: 3 additions & 0 deletions equinox-fc/Domain/TicketList.fs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ let streamName listId = FsCodec.StreamName.create Category (TicketListId.toStrin
// NOTE - these types and the union case names reflect the actual storage formats and hence need to be versioned with care
module Events =

let [<Literal>] CategoryId = "TicketList"
let (|For|) id = FsCodec.StreamName.create CategoryId (TicketListId.toString id)

type Allocated = { allocatorId : AllocatorId; ticketIds : TicketId[] }
type Snapshotted = { ticketIds : TicketId[] }
type Event =
Expand Down

0 comments on commit f950013

Please sign in to comment.