Make HttpConnectionFactory public (#11702)
- Move HttpConnectionFactory to the Http.Connections.Client assembly
This commit is contained in:
parent
c39fbb8f12
commit
f06892a12c
|
|
@ -7,10 +7,12 @@
|
|||
<Compile Include="Microsoft.AspNetCore.Http.Connections.Client.netstandard2.0.cs" />
|
||||
<Reference Include="Microsoft.AspNetCore.Http.Connections.Common" />
|
||||
<Reference Include="Microsoft.Extensions.Logging.Abstractions" />
|
||||
<Reference Include="Microsoft.Extensions.Options" />
|
||||
</ItemGroup>
|
||||
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.1'">
|
||||
<Compile Include="Microsoft.AspNetCore.Http.Connections.Client.netstandard2.1.cs" />
|
||||
<Reference Include="Microsoft.AspNetCore.Http.Connections.Common" />
|
||||
<Reference Include="Microsoft.Extensions.Logging.Abstractions" />
|
||||
<Reference Include="Microsoft.Extensions.Options" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
|
|
|||
|
|
@ -20,6 +20,12 @@ namespace Microsoft.AspNetCore.Http.Connections.Client
|
|||
public System.Threading.Tasks.Task StartAsync(Microsoft.AspNetCore.Connections.TransferFormat transferFormat, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
|
||||
public System.Threading.Tasks.Task StartAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
|
||||
}
|
||||
public partial class HttpConnectionFactory : Microsoft.AspNetCore.Connections.IConnectionFactory
|
||||
{
|
||||
public HttpConnectionFactory(Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Http.Connections.Client.HttpConnectionOptions> options, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) { }
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute]
|
||||
public System.Threading.Tasks.ValueTask<Microsoft.AspNetCore.Connections.ConnectionContext> ConnectAsync(System.Net.EndPoint endPoint, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
|
||||
}
|
||||
public partial class HttpConnectionOptions
|
||||
{
|
||||
public HttpConnectionOptions() { }
|
||||
|
|
|
|||
|
|
@ -20,6 +20,12 @@ namespace Microsoft.AspNetCore.Http.Connections.Client
|
|||
public System.Threading.Tasks.Task StartAsync(Microsoft.AspNetCore.Connections.TransferFormat transferFormat, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
|
||||
public System.Threading.Tasks.Task StartAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
|
||||
}
|
||||
public partial class HttpConnectionFactory : Microsoft.AspNetCore.Connections.IConnectionFactory
|
||||
{
|
||||
public HttpConnectionFactory(Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Http.Connections.Client.HttpConnectionOptions> options, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory) { }
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute]
|
||||
public System.Threading.Tasks.ValueTask<Microsoft.AspNetCore.Connections.ConnectionContext> ConnectAsync(System.Net.EndPoint endPoint, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
|
||||
}
|
||||
public partial class HttpConnectionOptions
|
||||
{
|
||||
public HttpConnectionOptions() { }
|
||||
|
|
|
|||
|
|
@ -6,16 +6,15 @@ using System.Net;
|
|||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Connections;
|
||||
using Microsoft.AspNetCore.Http.Connections.Client;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Microsoft.Extensions.Options;
|
||||
|
||||
namespace Microsoft.AspNetCore.SignalR.Client
|
||||
namespace Microsoft.AspNetCore.Http.Connections.Client
|
||||
{
|
||||
/// <summary>
|
||||
/// A factory for creating <see cref="HttpConnection"/> instances.
|
||||
/// </summary>
|
||||
internal class HttpConnectionFactory : IConnectionFactory
|
||||
public class HttpConnectionFactory : IConnectionFactory
|
||||
{
|
||||
private readonly HttpConnectionOptions _httpConnectionOptions;
|
||||
private readonly ILoggerFactory _loggerFactory;
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<Description>Client for ASP.NET Core Connection Handlers</Description>
|
||||
|
|
@ -17,6 +17,7 @@
|
|||
<ItemGroup>
|
||||
<Reference Include="Microsoft.AspNetCore.Http.Connections.Common" />
|
||||
<Reference Include="Microsoft.Extensions.Logging.Abstractions" />
|
||||
<Reference Include="Microsoft.Extensions.Options" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
|||
Loading…
Reference in New Issue