Skip to content

Commit c703802

Browse files
authored
Fix incorrect reference in documentation (#5571)
1 parent 576246b commit c703802

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

docs/client-concepts/high-level/serialization/custom-serialization.asciidoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Hooking up the serializer is performed in the `ConnectionSettings` constructor
8181
var pool = new SingleNodeConnectionPool(new Uri("http://localhost:9200"));
8282
var connectionSettings = new ConnectionSettings(
8383
pool,
84-
sourceSerializer: (builtin, settings) => new VanillaSerializer()); <1>
84+
sourceSerializer: (builtin, settings) => new VanillaSerializer()); <1>
8585
var client = new ElasticClient(connectionSettings);
8686
----
8787
<1> what the Func?
@@ -171,7 +171,7 @@ public class MyFirstCustomJsonNetSerializer : ConnectionSettingsAwareSerializerB
171171
}
172172
----
173173

174-
Using `MyCustomJsonNetSerializer`, we can serialize using
174+
Using `MyFirstCustomJsonNetSerializer`, we can serialize using
175175

176176
* a Json.NET `NamingStrategy` that snake cases property names
177177

@@ -211,7 +211,7 @@ Hooking up the serializer and using it is as follows
211211
var pool = new SingleNodeConnectionPool(new Uri("http://localhost:9200"));
212212
var connectionSettings = new ConnectionSettings(
213213
pool,
214-
connection: new InMemoryConnection(), <1>
214+
connection: new InMemoryConnection(), <1>
215215
sourceSerializer: (builtin, settings) => new MyFirstCustomJsonNetSerializer(builtin, settings))
216216
.DefaultIndex("my-index");
217217
@@ -289,7 +289,7 @@ public class MySecondCustomJsonNetSerializer : ConnectionSettingsAwareSerializer
289289
};
290290
291291
protected override ConnectionSettingsAwareContractResolver CreateContractResolver() =>
292-
new MySecondCustomContractResolver(ConnectionSettings); <1>
292+
new MySecondCustomContractResolver(ConnectionSettings); <1>
293293
}
294294
----
295295
<1> override the contract resolver

src/Tests/Tests/ClientConcepts/HighLevel/Serialization/CustomSerialization.doc.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ protected override void ModifyContractResolver(ConnectionSettingsAwareContractRe
176176
}
177177

178178
/**
179-
* Using `MyCustomJsonNetSerializer`, we can serialize using
179+
* Using `MyFirstCustomJsonNetSerializer`, we can serialize using
180180
*
181181
* - a Json.NET `NamingStrategy` that snake cases property names
182182
* - `JsonSerializerSettings` that includes `null` properties

0 commit comments

Comments
 (0)