Skip to content

Grpc Error #4233

@wisamidris7

Description

@wisamidris7

Hello in aspire the ConfigureHttpClientDefaults is important for grpc and http for service discovery

Okay problem is the grpc no longer support ConfigureHttpClient or even ConfigureHttpClientDefaults
And i need the service discovery i said no problem i maked a custom uri or grpc with configuration

builder.Services.AddGrpcClient<...>(e => e.Uri = new Uri(builder.Configuration["MyServiceUrl"]));

This was gonna work but ConfigureHttpClientDefaults even go in to grpc so i have a lot of http client services discovery
And the best feature of aspire is services discovery it's 70% who made me upgrade my project to aspire

So can you explain how to fix it!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions