File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
src/libraries/System.Net.Http/src/System/Net/Http Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change 11
11
using System . Security . Authentication ;
12
12
using System . Security . Cryptography . X509Certificates ;
13
13
14
- #if TARGET_ANDROID
15
- using GetHttpMessageHandlerReturnType = object ;
16
- #elif TARGET_IOS || TARGET_MACCATALYST || TARGET_TVOS
17
- using GetHttpMessageHandlerReturnType = System . Net . Http . HttpMessageHandler ;
18
- #endif
19
-
20
14
namespace System . Net . Http
21
15
{
22
16
public partial class HttpClientHandler : HttpMessageHandler
@@ -338,12 +332,10 @@ private void SetCredentials(ICredentials? value)
338
332
339
333
private static HttpMessageHandler CreateNativeHandler ( )
340
334
{
341
- return ( HttpMessageHandler ) CallNative ( null ) ;
335
+ return CallNative ( null ) ;
342
336
343
- #pragma warning disable SA1121 // Use built-in type alias. We need to alias here for Android.
344
337
[ UnsafeAccessor ( UnsafeAccessorKind . StaticMethod , Name = "GetHttpMessageHandler" ) ]
345
- static extern GetHttpMessageHandlerReturnType CallNative ( [ UnsafeAccessorType ( GetHttpMessageHandlerType ) ] object ? _ ) ;
346
- #pragma warning restore SA1121
338
+ static extern HttpMessageHandler CallNative ( [ UnsafeAccessorType ( GetHttpMessageHandlerType ) ] object ? _ ) ;
347
339
}
348
340
}
349
341
}
You can’t perform that action at this time.
0 commit comments