Skip to content

Commit 8c60f79

Browse files
committed
Updated docs syntax
1 parent 6f91dd7 commit 8c60f79

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

docs/plugins/persistence-plugin.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,15 @@ var decryptionProcessor = new DecryptDataProcessor(encryptor);
4040
var fileEndpoint = new FileEndpoint("savegame.sav");
4141

4242
// Create the pipeline to save the data
43-
container.BuildPipeline("SaveGame", x => x.SerializeWith<IBinarySerializer>()
43+
container.BuildPipeline("SaveGame", x => x
44+
.StartWithInput()
45+
.SerializeWith<IBinarySerializer>()
4446
.ProcessWith(encryptionProcessor)
45-
.SendTo(fileEndpoint));
47+
.ThenSendTo(fileEndpoint));
4648

4749
// Create the pipeline to load the data
48-
container.BuildPipeline("LoadGame", x => x.ReceiveFrom(fileEndpoint)
50+
container.BuildPipeline("LoadGame", x => x
51+
.StartFrom(fileEndpoint)
4952
.ProcessWith(decryptionProcessor)
5053
.DeserializeWith<IBinaryDeerializer>());
5154

0 commit comments

Comments
 (0)