Make constructor internal (#9706)

This commit is contained in:
John Luo 2019-04-25 11:29:51 -07:00 committed by GitHub
parent 1f7b5855f7
commit 1845706a71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View File

@ -5,7 +5,7 @@ namespace Microsoft.AspNetCore.TestHost
{
public partial class ClientHandler : System.Net.Http.HttpMessageHandler
{
public ClientHandler(Microsoft.AspNetCore.Http.PathString pathBase, Microsoft.AspNetCore.Hosting.Server.IHttpApplication<Microsoft.AspNetCore.Hosting.Internal.HostingApplication.Context> application) { }
internal ClientHandler() { }
[System.Diagnostics.DebuggerStepThroughAttribute]
protected override System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> SendAsync(System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) { throw null; }
}

View File

@ -31,9 +31,7 @@ namespace Microsoft.AspNetCore.TestHost
/// </summary>
/// <param name="pathBase">The base path.</param>
/// <param name="application">The <see cref="IHttpApplication{TContext}"/>.</param>
#pragma warning disable PUB0001
public ClientHandler(PathString pathBase, IHttpApplication<Context> application)
#pragma warning restore PUB0001
internal ClientHandler(PathString pathBase, IHttpApplication<Context> application)
{
_application = application ?? throw new ArgumentNullException(nameof(application));