Beispiel #1
0
 public SchemaRegistryFactory(
     JsonSerializerSettings jsonSerializerSettings,
     SchemaRegistryOptions options)
 {
     _jsonSerializerSettings = jsonSerializerSettings;
     _options = options;
 }
Beispiel #2
0
 public SchemaRegistryFactory(
     JsonSerializerSettings jsonSerializerSettings,
     SchemaRegistryOptions options)
 {
     _jsonSerializerSettings = jsonSerializerSettings;
     _options = options;
 }
Beispiel #3
0
 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>();
 }
Beispiel #4
0
 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));
        }
Beispiel #6
0
        private SchemaRegistry Subject(Action<SchemaRegistryOptions> configureOptions = null)
        {
            var options = new SchemaRegistryOptions();
            if (configureOptions != null) configureOptions(options);

            return new SchemaRegistry(new JsonSerializerSettings(), options);
        }