public SchemaRegistryFactory( JsonSerializerSettings jsonSerializerSettings, SchemaRegistryOptions options) { _jsonSerializerSettings = jsonSerializerSettings; _options = options; }
public SchemaRegistry( JsonSerializerSettings jsonSerializerSettings, SchemaRegistryOptions options = null) { _jsonSerializerSettings = jsonSerializerSettings; _jsonContractResolver = _jsonSerializerSettings.ContractResolver ?? new DefaultContractResolver(); _options = options ?? new SchemaRegistryOptions(); _referencedTypes = new List <ReferencedType>(); Definitions = new Dictionary <string, Schema>(); }
public SchemaRegistry( JsonSerializerSettings jsonSerializerSettings, SchemaRegistryOptions options = null) { _jsonSerializerSettings = jsonSerializerSettings; _jsonContractResolver = _jsonSerializerSettings.ContractResolver ?? new DefaultContractResolver(); _options = options ?? new SchemaRegistryOptions(); _referencedTypeMap = new Dictionary<string, Type>(); Definitions = new Dictionary<string, Schema>(); }
private SchemaRegistry Subject(Action <SchemaRegistryOptions> configureOptions = null) { var options = new SchemaRegistryOptions(); if (configureOptions != null) { configureOptions(options); } return(new SchemaRegistry(new JsonSerializerSettings(), options)); }
private SchemaRegistry Subject(Action<SchemaRegistryOptions> configureOptions = null) { var options = new SchemaRegistryOptions(); if (configureOptions != null) configureOptions(options); return new SchemaRegistry(new JsonSerializerSettings(), options); }