public SchemaRegistryFactory( JsonSerializerSettings jsonSerializerSettings, SchemaRegistryOptions schemaRegistryOptions) { _jsonSerializerSettings = jsonSerializerSettings; _schemaRegistryOptions = schemaRegistryOptions; }
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>(); }