SchemaBuilder class

A schema builder configured with a reasonable set of default cases.
AssemblyChr.Avro
NamespaceChr.Avro.Abstract
Signature
public class SchemaBuilder : Chr.Avro.Abstract.ISchemaBuilder
Baseobject
InterfacesISchemaBuilder

Constructors

SchemaBuilder(TemporalBehavior, ITypeResolver)
Creates a new schema builder.
SchemaBuilder(IEnumerable<Func<ISchemaBuilder, ISchemaBuilderCase>>, ITypeResolver)
Creates a new schema builder.

Properties

IEnumerable<ISchemaBuilderCase> Cases
A list of cases that the schema builder will attempt to apply. If the first case does not match, the schema builder will try the next case, and so on until all cases have been tested.
ITypeResolver Resolver
A resolver to retrieve type information from.

Methods

Schema BuildSchema(Type, ConcurrentDictionary<Type, Schema>)
Builds a schema.
Schema BuildSchema<T>(ConcurrentDictionary<Type, Schema>)
Builds a schema.
IEnumerable<Func<ISchemaBuilder, ISchemaBuilderCase>> CreateCaseBuilders(TemporalBehavior)
Creates a default list of case builders.
Chr.Avro