Пример #1
0
        public GraphQlServiceProvider(IServiceProvider serviceProvider, GraphQlOptions options)
        {
            scope = serviceProvider.CreateScope();
            scope.ServiceProvider.GetRequiredService <GraphQlCurrentServiceProvider>().CurrentServiceProvider = this;

            this.serviceProvider = scope.ServiceProvider;
            this.options         = options;
        }
 public IGraphQlExecutionServiceProvider GetServiceProvider(GraphQlOptions options)
 {
     return(new GraphQlServiceProvider(serviceProvider, options));
 }