File tree Expand file tree Collapse file tree 4 files changed +12
-7
lines changed
Patros.AuthenticatedHttpClient.QueryStringParameter Expand file tree Collapse file tree 4 files changed +12
-7
lines changed Original file line number Diff line number Diff line change 22{
33 public class AuthorizationHeaderAuthenticatedHttpClientOptions
44 {
5- public string Value ;
5+ public string Value { get ; set ; }
66 }
77}
Original file line number Diff line number Diff line change @@ -6,11 +6,16 @@ namespace Patros.AuthenticatedHttpClient
66{
77 public class CustomHeaderAuthenticatedHttpMessageHandler : DelegatingHandler
88 {
9- private CustomHeaderAuthenticatedHttpClientOptions _options ;
9+ private readonly CustomHeaderAuthenticatedHttpClientOptions _options ;
1010
11- public CustomHeaderAuthenticatedHttpMessageHandler ( CustomHeaderAuthenticatedHttpClientOptions options , HttpMessageHandler innerHandler = null )
11+ public CustomHeaderAuthenticatedHttpMessageHandler ( CustomHeaderAuthenticatedHttpClientOptions options )
1212 {
13- InnerHandler = innerHandler ?? new HttpClientHandler ( ) ;
13+ _options = options ;
14+ }
15+
16+ public CustomHeaderAuthenticatedHttpMessageHandler ( CustomHeaderAuthenticatedHttpClientOptions options , HttpMessageHandler innerHandler )
17+ {
18+ InnerHandler = innerHandler ;
1419
1520 _options = options ;
1621 }
Original file line number Diff line number Diff line change 33namespace Patros . AuthenticatedHttpClient
44{
55 public class MultipleCustomHeaderAuthenticatedHttpClientOptions {
6- public Dictionary < string , string > Headers ;
6+ public Dictionary < string , string > Headers { get ; set ; }
77 }
88}
Original file line number Diff line number Diff line change 11namespace Patros . AuthenticatedHttpClient
22{
33 public class QueryStringParameterAuthenticatedHttpClientOptions {
4- public string Name ;
5- public string Value ;
4+ public string Name { get ; set ; }
5+ public string Value { get ; set ; }
66 }
77}
You can’t perform that action at this time.
0 commit comments