Пример #1
0
 public ObjectReflector(ITypeResolver typeResolver, IGraphTypeAdapter graphTypeAdapter)
 {
     _typeResolver = typeResolver;
     _typeCache    = new CachedRegistry <TypeInfo, GraphTypeInfo>();
 }
Пример #2
0
 public GraphTypeAdapter(IServiceProvider serviceProvider)
 {
     ServiceProvider  = serviceProvider;
     _typeDescriptors = new CachedRegistry <Type, IGraphType>(serviceProvider);
 }