You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* A more involved and explicit way would be to implement your own JsonNetSerializer subclass.
315
+
*
316
+
* NOTE: this is subject to change in the next major release. NEST relies heavily on stateful deserializers (that have access to the original
317
+
* request) for specialized features such a covariant search results. This requirement leaks into this abstraction.
318
+
*/
297
319
publicclassMyJsonNetSerializer:JsonNetSerializer
298
320
{
299
-
publicMyJsonNetSerializer(IConnectionSettingsValuessettings):base(settings,(s,csv)=>s.PreserveReferencesHandling=PreserveReferencesHandling.All)//<1> Call this constructor if you only need access to `JsonSerializerSettings` without state
:base(settings,(s,csv)=>s.PreserveReferencesHandling=PreserveReferencesHandling.All)//<1> Call this constructor if you only need access to `JsonSerializerSettings` without state
300
323
{
301
324
OverwriteDefaultSerializers((s,cvs)=>ModifySerializerSettings(s));//<2> Call OverwriteDefaultSerializers if you need access to `JsonSerializerSettings` with state
0 commit comments