Skip to content
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

Fix client factory trim warning #1806

Merged
merged 1 commit into from
Jul 5, 2022

Conversation

JamesNK
Copy link
Member

@JamesNK JamesNK commented Jul 3, 2022

Fix warning:

/_/src/Grpc.Net.ClientFactory/Internal/DefaultClientActivator.cs(27,85): Trim analysis warning IL2087: Grpc.Net.ClientFactory.Internal.DefaultClientActivator<TClien
t>.<>c.<.cctor>b__9_0(): 'instanceType' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicConstructors' in call to 'Microsoft.Extensions.DependencyInj
ection.ActivatorUtilities.CreateFactory(Type, Type[])'. The generic parameter 'TClient' of 'Grpc.Net.ClientFactory.Internal.DefaultClientActivator<TClient>.<>c' doe
s not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to. [C:\Develo
pment\Source\grpc-dotnet\examples\Aggregator\Server\Server.csproj]

@JamesNK JamesNK merged commit a984c6d into grpc:master Jul 5, 2022
@JamesNK JamesNK deleted the jamesnk/clientfactory-trimming branch July 5, 2022 22:03
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.

None yet

2 participants