@@ -81,20 +81,30 @@ void RegisterGenericSerializerDefinition(
81
81
/// <summary>
82
82
/// Gets or sets whether to use the NullIdChecker on reference Id types that don't have an IdGenerator registered.
83
83
/// </summary>
84
- bool UseNullIdChecker { get ; set ; } //TODO This should become a getter only property and a method
84
+ bool UseNullIdChecker { get ; set ; } //TODO It would be nice if this became a method (SetUseNullIdChecker) and the configuration would have only a getter
85
85
86
86
/// <summary>
87
87
/// Gets or sets whether to use the ZeroIdChecker on value Id types that don't have an IdGenerator registered.
88
88
/// </summary>
89
89
bool UseZeroIdChecker { get ; set ; }
90
90
91
+ /// <summary>
92
+ /// //TODO
93
+ /// </summary>
94
+ /// <returns></returns>
95
+ IBsonCoreSerializer BuildCoreSerializer ( ) ;
91
96
}
92
97
93
98
/// <summary>
94
99
/// //TODO
95
100
/// </summary>
96
101
public interface IBsonCoreSerializer //TODO Don't like the name but have no better idea at the moment
97
102
{
103
+ /// <summary>
104
+ /// //TODO
105
+ /// </summary>
106
+ IBsonSerializationConfiguration SerializationConfiguration { get ; }
107
+
98
108
/// <summary>
99
109
/// Deserializes an object from a BsonDocument.
100
110
/// </summary>
@@ -292,17 +302,28 @@ public interface IBsonSerializationConfiguration
292
302
/// <param name="type">The Type.</param>
293
303
/// <returns>A serializer for the Type.</returns>
294
304
IBsonSerializer LookupSerializer ( Type type ) ;
305
+
306
+ /// <summary>
307
+ /// Gets the serializer registry.
308
+ /// </summary>
309
+ IBsonSerializerRegistry SerializerRegistry { get ; }
310
+
311
+ /// <summary>
312
+ /// Gets whether to use the NullIdChecker on reference Id types that don't have an IdGenerator registered is enabled.
313
+ /// </summary>
314
+ bool UseNullIdCheckerEnabled { get ; }
315
+
316
+ /// <summary>
317
+ /// Gets whether to use the ZeroIdChecker on value Id types that don't have an IdGenerator registered is enabled.
318
+ /// </summary>
319
+ bool UseZeroIdCheckerEnabled { get ; }
295
320
}
296
321
297
322
/// <summary>
298
323
/// //TODO
299
324
/// </summary>
300
325
public interface IBsonSerializationDomain : IBsonSerializationConfigurator , IBsonSerializationConfiguration , IBsonCoreSerializer
301
326
{
302
- /// <summary>
303
- /// Gets the serializer registry.
304
- /// </summary>
305
- IBsonSerializerRegistry SerializerRegistry { get ; }
306
327
}
307
328
308
329
internal interface IBsonSerializationDomainInternal : IBsonSerializationDomain
0 commit comments