Skip to content

Commit ebca235

Browse files
committed
Samples naming consistency
Syncing from dotnet-templates
1 parent 630042c commit ebca235

File tree

8 files changed

+14
-14
lines changed

8 files changed

+14
-14
lines changed

samples/Store/Domain/Cart.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ module Events =
2424
| ItemQuantityChanged of ItemQuantityChangedInfo
2525
| ItemPropertiesChanged of ItemPropertiesChangedInfo
2626
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>
2929

3030
module Fold =
3131

samples/Store/Domain/ContactPreferences.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ module Events =
1212
type Event =
1313
| [<System.Runtime.Serialization.DataMember(Name = "contactPreferencesChanged")>]Updated of Value
1414
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>
1717

1818
module Fold =
1919

samples/Store/Domain/Favorites.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ module Events =
1414
| Favorited of Favorited
1515
| Unfavorited of Unfavorited
1616
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>
1919

2020
module Fold =
2121

samples/Store/Domain/Infrastructure.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ module InventoryItemId = let toString (value : InventoryItemId) : string = Guid.
7878
module EventCodec =
7979

8080
/// 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> =
8282
FsCodec.SystemTextJson.CodecJsonElement.Create<'t>()
8383

8484
/// 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> =
8686
FsCodec.NewtonsoftJson.Codec.Create<'t>()

samples/Store/Domain/SavedForLater.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module Events =
2929
/// Addition of a collection of skus to the list
3030
| Added of Added
3131
interface TypeShape.UnionContract.IUnionContract
32-
let codec = EventCodec.create<Event>()
32+
let codec = EventCodec.gen<Event>
3333

3434
module Fold =
3535
open Events

samples/TodoBackend/Todo.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module Events =
2020
| Cleared
2121
| Snapshotted of Snapshotted
2222
interface TypeShape.UnionContract.IUnionContract
23-
let codec = EventCodec.create<Event> ()
23+
let codec = EventCodec.gen<Event>
2424

2525
module Fold =
2626
type State = { items : Events.Todo list; nextId : int }

samples/Tutorial/Infrastructure.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ module IndexId =
2222
module EventCodec =
2323

2424
/// 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> =
2626
FsCodec.SystemTextJson.CodecJsonElement.Create<'t>()
2727

2828
/// 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> =
3030
FsCodec.NewtonsoftJson.Codec.Create<'t>()

samples/Tutorial/Upload.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ module Events =
2929
type Event =
3030
| IdAssigned of IdAssigned
3131
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>
3434

3535
module Fold =
3636

0 commit comments

Comments
 (0)