Ejemplo n.º 1
0
 public SchemaRegistryFactory(
     JsonSerializerSettings jsonSerializerSettings,
     SchemaRegistryOptions schemaRegistryOptions)
 {
     _jsonSerializerSettings = jsonSerializerSettings;
     _schemaRegistryOptions  = schemaRegistryOptions;
 }
Ejemplo n.º 2
0
 public SchemaRegistry(
     JsonSerializerSettings jsonSerializerSettings,
     SchemaRegistryOptions options = null)
 {
     _jsonSerializerSettings = jsonSerializerSettings;
     _jsonContractResolver   = _jsonSerializerSettings.ContractResolver ?? new DefaultContractResolver();
     _options         = options ?? new SchemaRegistryOptions();
     _schemaIdManager = new SchemaIdManager(_options.SchemaIdSelector);
     Definitions      = new Dictionary <string, Schema>();
 }