コード例 #1
0
        public GraphQlServiceProvider(IServiceProvider serviceProvider, GraphQlOptions options)
        {
            scope = serviceProvider.CreateScope();
            scope.ServiceProvider.GetRequiredService <GraphQlCurrentServiceProvider>().CurrentServiceProvider = this;

            this.serviceProvider = scope.ServiceProvider;
            this.options         = options;
        }
コード例 #2
0
 public IGraphQlExecutionServiceProvider GetServiceProvider(GraphQlOptions options)
 {
     return(new GraphQlServiceProvider(serviceProvider, options));
 }