File tree Expand file tree Collapse file tree 8 files changed +14
-14
lines changed Expand file tree Collapse file tree 8 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -24,8 +24,8 @@ module Events =
24
24
| ItemQuantityChanged of ItemQuantityChangedInfo
25
25
| ItemPropertiesChanged of ItemPropertiesChangedInfo
26
26
interface TypeShape.UnionContract.IUnionContract
27
- let codec = EventCodec.create < Event>()
28
- let codecJe = EventCodec.createJson < Event>()
27
+ let codec = EventCodec.gen < Event>
28
+ let codecJe = EventCodec.genJsonElement < Event>
29
29
30
30
module Fold =
31
31
Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ module Events =
12
12
type Event =
13
13
| [<System.Runtime.Serialization.DataMember( Name = " contactPreferencesChanged" ) >] Updated of Value
14
14
interface TypeShape.UnionContract.IUnionContract
15
- let codec = EventCodec.create < Event>()
16
- let codecJe = EventCodec.createJson < Event>()
15
+ let codec = EventCodec.gen < Event>
16
+ let codecJe = EventCodec.genJsonElement < Event>
17
17
18
18
module Fold =
19
19
Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ module Events =
14
14
| Favorited of Favorited
15
15
| Unfavorited of Unfavorited
16
16
interface TypeShape.UnionContract.IUnionContract
17
- let codec = EventCodec.create < Event>()
18
- let codecJe = EventCodec.createJson < Event>()
17
+ let codec = EventCodec.gen < Event>
18
+ let codecJe = EventCodec.genJsonElement < Event>
19
19
20
20
module Fold =
21
21
Original file line number Diff line number Diff line change @@ -78,9 +78,9 @@ module InventoryItemId = let toString (value : InventoryItemId) : string = Guid.
78
78
module EventCodec =
79
79
80
80
/// For CosmosStore - we encode to JsonElement as that's what the store talks
81
- let createJson < 't when 't :> TypeShape.UnionContract.IUnionContract > () =
81
+ let genJsonElement < 't when 't :> TypeShape.UnionContract.IUnionContract > =
82
82
FsCodec.SystemTextJson.CodecJsonElement.Create< 't>()
83
83
84
84
/// For stores other than CosmosStore, we encode to UTF-8 and have the store do the right thing
85
- let create < 't when 't :> TypeShape.UnionContract.IUnionContract > () =
85
+ let gen < 't when 't :> TypeShape.UnionContract.IUnionContract > =
86
86
FsCodec.NewtonsoftJson.Codec.Create< 't>()
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ module Events =
29
29
/// Addition of a collection of skus to the list
30
30
| Added of Added
31
31
interface TypeShape.UnionContract.IUnionContract
32
- let codec = EventCodec.create < Event>()
32
+ let codec = EventCodec.gen < Event>
33
33
34
34
module Fold =
35
35
open Events
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ module Events =
20
20
| Cleared
21
21
| Snapshotted of Snapshotted
22
22
interface TypeShape.UnionContract.IUnionContract
23
- let codec = EventCodec.create < Event> ()
23
+ let codec = EventCodec.gen < Event>
24
24
25
25
module Fold =
26
26
type State = { items : Events .Todo list ; nextId : int }
Original file line number Diff line number Diff line change @@ -22,9 +22,9 @@ module IndexId =
22
22
module EventCodec =
23
23
24
24
/// For CosmosStore - we encode to JsonElement as that's what the store talks
25
- let createJson < 't when 't :> TypeShape.UnionContract.IUnionContract > () =
25
+ let genJsonElement < 't when 't :> TypeShape.UnionContract.IUnionContract > =
26
26
FsCodec.SystemTextJson.CodecJsonElement.Create< 't>()
27
27
28
28
/// For stores other than CosmosStore, we encode to UTF-8 and have the store do the right thing
29
- let create < 't when 't :> TypeShape.UnionContract.IUnionContract > () =
29
+ let gen < 't when 't :> TypeShape.UnionContract.IUnionContract > =
30
30
FsCodec.NewtonsoftJson.Codec.Create< 't>()
Original file line number Diff line number Diff line change @@ -29,8 +29,8 @@ module Events =
29
29
type Event =
30
30
| IdAssigned of IdAssigned
31
31
interface TypeShape.UnionContract.IUnionContract
32
- let codec = EventCodec.create < Event> ()
33
- let codecJe = EventCodec.createJson < Event> ()
32
+ let codec = EventCodec.gen < Event>
33
+ let codecJe = EventCodec.genJsonElement < Event>
34
34
35
35
module Fold =
36
36
You can’t perform that action at this time.
0 commit comments