Skip to content

The method ApplyClientBehavior inside IEndpointBehavior gets not call after updating openria to 5.3.1 #432

Answered by Daniel-Svensson
neplan asked this question in Q&A
Discussion options

You must be logged in to vote

If you need to add your custom behaviour you need to write your own DomainClientFactory, se #267 (comment) for a similar issue and proposed solution.

Some other notes:

  • If you want to extend the communication pipeline you are better of switching to use the BinaryHttpDomainClientFactory introduced in 5.1.0 which uses HttpClient and HttpClientHandler so you can write DelegatingHandlers to extend the request pipeline as you wich and can add existing libraries for Oauth , retries etc.
  • Support for cookies is built in (unless you need to modify them), just set the CookieContainer on the WebDomainClientFactory and it will set AllowCookies to true for you

Replies: 5 comments

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 Daniel-Svensson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
3 participants
Converted from issue

This discussion was converted from issue #430 on August 29, 2023 09:00.