Skip to content

Issue in use of NpgsqlDataSource method and connecting UI with APP app with httpclient #3170

Answered by davidfowl
Amit-limbasiya asked this question in Q&A
Discussion options

You must be logged in to vote

Now, if it has been configured then how to use it.

If you want to get an instance of an http client from DI then you can inject an HttpClient into your application and it should be configured. You can learn more about the HttpClientFactory here https://learn.microsoft.com/en-us/dotnet/core/extensions/httpclient-factory.

I will have to tell UI app to discover for the instance from AppHost?

The apphost you posted should be enough to make it work. Your "Password-Manager" project should be able to talk to the backend using "http://backend".

Replies: 9 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Amit-limbasiya
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@davidfowl
Comment options

@goldytech
Comment options

@davidfowl
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
area-integrations Issues pertaining to Aspire Integrations packages
3 participants
Converted from issue

This discussion was converted from issue #3097 on March 26, 2024 07:00.