Ejemplo n.º 1
0
 public SchemaSyntaxVisitor(
     ITypeRegistry typeRegistry,
     IDirectiveRegistry directiveRegistry)
 {
     _typeRegistry = typeRegistry
                     ?? throw new ArgumentNullException(nameof(typeRegistry));
     _directiveRegistry = directiveRegistry
                          ?? throw new ArgumentNullException(nameof(directiveRegistry));
 }
Ejemplo n.º 2
0
 public SchemaConfiguration(
     Action <IServiceProvider> registerServiceProvider,
     ITypeRegistry typeRegistry,
     IDirectiveRegistry directiveRegistry)
 {
     _registerServiceProvider = registerServiceProvider
                                ?? throw new ArgumentNullException(
                                          nameof(registerServiceProvider));
     _typeRegistry = typeRegistry
                     ?? throw new ArgumentNullException(nameof(typeRegistry));
     _directiveRegistry = directiveRegistry
                          ?? throw new ArgumentNullException(nameof(directiveRegistry));
 }