Skip to content
Discussion options

You must be logged in to vote

This issue occurs when any code that runs between when the LocalProxy gets created and disposed, instantiates any DataPortal object. When the DataPortal gets instantiates it will create an HttpProxy which has an HttpClient injected into its constructor. The constructor has a _httpClient = httpClient; statement that sets the static _httpClient variable to the new httpClient passed in. When the LocalProxy gets disposed at the end of the Create method, it will dispose of that very same HttpClient that the static _httpClient variable in HttpProxy is now pointing to.

Ultimately, as Rocky assumed, this has nothing to do with the ClaimsPrincipalFactory. It just so happens that when using a Claim…

Replies: 4 comments 22 replies

Comment options

You must be logged in to vote
6 replies
@saulyt
Comment options

@saulyt
Comment options

@rockfordlhotka
Comment options

@rockfordlhotka
Comment options

@saulyt
Comment options

Comment options

You must be logged in to vote
6 replies
@ajohnstone-ks
Comment options

@saulyt
Comment options

@ajohnstone-ks
Comment options

@rockfordlhotka
Comment options

@saulyt
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
10 replies
@saulyt
Comment options

@rockfordlhotka
Comment options

@rockfordlhotka
Comment options

@saulyt
Comment options

@clodewyks
Comment options

Answer selected by rockfordlhotka
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants