0

https://github.com/dotnet/corefx/blob/master/src/System.Net.Http/src/System/Net/Http/HttpMessageHandler.cs#L20

protected internal abstract Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken);

https://github.com/dotnet/corefx/blob/master/src/System.Net.Http/src/System/Net/Http/HttpMessageInvoker.cs#L51

Task<HttpResponseMessage> task = _handler.SendAsync(request, cancellationToken);

How to call protected method?

XaveScor
  • 93
  • 2
  • 10

1 Answers1

1

It's not protected. It's protected internal. Which means "protected OR internal". This method can be called by any code in the same assembly.

What is the difference between 'protected' and 'protected internal'?

Community
  • 1
  • 1
Ilya Chumakov
  • 23,161
  • 9
  • 86
  • 114