Skip to content

net5 TFM #87

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 27, 2022
Merged

net5 TFM #87

merged 3 commits into from
Feb 27, 2022

Conversation

sungam3r
Copy link
Member

No description provided.

# Conflicts:
#	src/AspNetCore/Example/Example.csproj
Query = provider.GetRequiredService<StarWarsQuery>();
Mutation = provider.GetRequiredService<StarWarsMutation>();
Query = (StarWarsQuery)provider.GetService(typeof(StarWarsQuery)) ?? throw new InvalidOperationException();
Mutation = (StarWarsMutation)provider.GetService(typeof(StarWarsMutation)) ?? throw new InvalidOperationException();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Long time ago we removed GetRequiredService extension method from GraphQL.NET codebase.

@sungam3r sungam3r merged commit bb9eeba into master Feb 27, 2022
@sungam3r sungam3r deleted the net5 branch February 27, 2022 19:37
This was referenced Feb 27, 2022
Comment on lines +23 to +29
#pragma warning disable CS0612 // Type or member is obsolete
services
.AddGraphQL(options => options.EnableMetrics = true)
.AddErrorInfoProvider(opt => opt.ExposeExceptionStackTrace = true)
.AddSystemTextJson()
.AddUserContextBuilder(httpContext => new GraphQLUserContext { User = httpContext.User });
#pragma warning restore CS0612 // Type or member is obsolete
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should use non-obsolete methods.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll change usages after April release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants