Skip to content

Example on how to configure proxy #308

Closed Answered by rajanadar
ubibastien asked this question in Q&A
Discussion options

You must be logged in to vote

Cool. In that case, you can use the following snippet to set the proxy.

                vaultClientSettings.PostProcessHttpClientHandlerAction = handler =>
                {
                    // For NET46 || NET461 || NET462 || NET47 || NET471 || NET472 || NET48
                    // The handler is of type WinHttpHandler
                    var winHttpHandler = handler as WinHttpHandler;

                    if (winHttpHandler != null)
                    {
                        // set proxy using, winHttpHandler.Proxy
                    }
                }

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@ubibastien
Comment options

Comment options

You must be logged in to vote
1 reply
@ubibastien
Comment options

Answer selected by rajanadar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants