title: Dependency injection won't work when GraphQL ObjectGraphTypes in multiple assemblies
body: <p>I have defined several GraphQL ObjectGraphType and queries in several projects. All of these projects has dependency to asp.net boilerplate GraphQL project. It return error <strong>"Castle.MicroKernel.ComponentNotFoundException: "No component for supporting the service was found"</strong> when i tried to call any graphQL queries.</p>
  
  <p><strong>Exception Stacktrace</strong></p>
  
  <pre><code>Sample.Types.ProductPagedResultGraphType was found ---&gt; Castle.MicroKernel.ComponentNotFoundException: No component for supporting the service Sample.Types.ProductPagedResultGraphType was found
     at Castle.MicroKernel.DefaultKernel.Castle.MicroKernel.IKernelInternal.Resolve(Type service, Arguments arguments, IReleasePolicy policy, Boolean ignoreParentContext)
     at Castle.Windsor.MsDependencyInjection.ScopedWindsorServiceProvider.GetServiceInternal(Type serviceType, Boolean isOptional) in D:\Github\castle-windsor-ms-adapter\src\Castle.Windsor.MsDependencyInjection\ScopedWindsorServiceProvider.cs:line 55
     at GraphQL.Types.Schema.&lt;CreateTypesLookup&gt;b__56_2(Type type)
     at GraphQL.Types.GraphTypesLookup.AddTypeIfNotRegistered(Type type, TypeCollectionContext context)
     at GraphQL.Types.GraphTypesLookup.HandleField(Type parentType, FieldType field, TypeCollectionContext context)
     at GraphQL.Types.GraphTypesLookup.AddType(IGraphType type, TypeCollectionContext context)
     at GraphQL.Types.GraphTypesLookup.Create(IEnumerable`1 types, IEnumerable`1 directives, Func`2 resolveType, IFieldNameConverter fieldNameConverter)
     at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)
     at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)
     at System.Lazy`1.CreateValue()
     at GraphQL.Types.Schema.get_AllTypes()
     at GraphQL.Instrumentation.FieldMiddlewareBuilder.ApplyTo(ISchema schema)
     at GraphQL.DocumentExecuter.ExecuteAsync(ExecutionOptions options)
     --- End of inner exception stack trace ---
  </code></pre>
  
  <p>It works when all those queries and ObjectGraphType are in  1 project which is asp.net boilerplate GraphQL project.</p>
  
  <p>In order to allow GraphQL ObjectGraphType and queries in multiple projects instead of putting all in the asp.net boilerplate GraphQL project, I have made the following changes:</p>
  
  <ol>
  <li>I have created a new QueryContainer (ExtQueryContainer.cs) to extend the original QueryContainer.cs</li>
  <li>I have modified the original QueryContainer by removing the sealed keyword from the class in order to allow the newly created QueryContainer to inherit the original QueryContainer. </li>
  <li>I have created a new GraphQL schema (GraphQLSchema.cs) which reference the newly created ExtQueryContainer</li>
  </ol>
  
  <p><strong>ServiceCollectionExtensions.cs (In asp.net boilerplate GraphQL project)</strong> </p>
  
  <pre><code>public static class ServiceCollectionExtensions
  {
      public static void AddAndConfigureGraphQL(this IServiceCollection services)
      {
          services.AddScoped&lt;IDependencyResolver&gt;(
              x =&gt; new FuncDependencyResolver(x.GetRequiredService)
          );
  
          services
              .AddGraphQL(x =&gt; { x.ExposeExceptions = DebugHelper.IsDebug; })
              .AddGraphTypes(ServiceLifetime.Scoped)
              .AddUserContextBuilder(httpContext =&gt; httpContext.User)
              .AddDataLoader();
      }
  }
  </code></pre>
  
  <p><strong>ExtQueryContainer.cs</strong></p>
  
  <pre><code>public sealed class ExtQueryContainer : QueryContainer
  {
      public QueryContainer(RoleQuery roleQuery, UserQuery userQuery, OrganizationUnitQuery organizationUnitQuery, ProductQuery productQuery)
          : base(roleQuery, userQuery, organizationUnitQuery)
      {
          AddField(productQuery.GetFieldType());
      }
  }
  </code></pre>
  
  <p><strong>GraphQLSchema.cs</strong></p>
  
  <pre><code>public class GraphQLSchema : Schema, ITransientDependency
  {
      public GraphQLSchema(IDependencyResolver resolver) : base(resolver)
      {
          Query = resolver.Resolve&lt;ExtQueryContainer&gt;();
      }
  }
  </code></pre>