protected internal abstract Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken);
Task<HttpResponseMessage> task = _handler.SendAsync(request, cancellationToken);
如何调用受保护的方法?
答案 0 :(得分:1)
不是protected
。它是protected internal
。这意味着&#34; protected
或internal
&#34;。此方法可以由同一程序集中的任何代码调用。
What is the difference between 'protected' and 'protected internal'?