示例#1
0
 public SchemaContext()
 {
     _serviceFactory    = new ServiceFactory();
     _typeRegistry      = new TypeRegistry(_serviceFactory);
     _resolverRegistry  = new ResolverRegistry();
     _directiveRegistry = new DirectiveRegistry();
 }
示例#2
0
 public SchemaContext(ServiceManager serviceManager)
 {
     ServiceManager     = serviceManager;
     _typeRegistry      = new TypeRegistry(serviceManager);
     _resolverRegistry  = new ResolverRegistry();
     _directiveRegistry = new DirectiveRegistry();
 }
 public SchemaContext()
 {
     _serviceFactory    = new ServiceFactory();
     _typeRegistry      = new TypeRegistry(_serviceFactory);
     _resolverRegistry  = new ResolverRegistry();
     _directiveRegistry = new DirectiveRegistry();
     DataLoaders        = new List <DataLoaderDescriptor>();
 }