You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To easily configure GraphQL.NET with the Microsoft dependency injection provider,
127
+
you can use the `GraphQL.MicrosoftDI` package. This package provides a `AddGraphQL`
128
+
extension method to register the necessary services. This package can also be used with
129
+
other dependency injection providers that support the `Microsoft.Extensions.DependencyInjection`
130
+
abstraction such as Autofac, Castle Windsor, and StructureMap.
128
131
129
132
```
130
133
> dotnet add package GraphQL.MicrosoftDI
131
134
```
132
135
133
-
For more information see [Thread safety with scoped services](https://graphql-dotnet.github.io/docs/getting-started/dependency-injection#thread-safety-with-scoped-services).
136
+
You can then configure GraphQL.NET in your `Startup.cs` file like this:
0 commit comments