Skip to content

Commit 97b7d0a

Browse files
committed
Remove interface
1 parent f8fb528 commit 97b7d0a

File tree

7 files changed

+8
-30
lines changed

7 files changed

+8
-30
lines changed

src/Servers/Kestrel/Kestrel/src/WebHostBuilderKestrelExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public static IWebHostBuilder UseKestrel(this IWebHostBuilder hostBuilder)
3333
{
3434
// Don't override an already-configured transport
3535
services.TryAddSingleton<IConnectionListenerFactory, SocketTransportFactory>();
36-
services.TryAddSingleton<ISocketConnectionContextFactory, SocketConnectionContextFactory>();
36+
services.TryAddSingleton<SocketConnectionContextFactory>();
3737

3838
services.AddTransient<IConfigureOptions<KestrelServerOptions>, KestrelServerOptionsSetup>();
3939
services.AddSingleton<IServer, KestrelServerImpl>();

src/Servers/Kestrel/Transport.Sockets/src/IISocketConnectionContextFactory.cs

Lines changed: 0 additions & 22 deletions
This file was deleted.

src/Servers/Kestrel/Transport.Sockets/src/PublicAPI.Unshipped.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ static Microsoft.AspNetCore.Hosting.WebHostBuilderSocketExtensions.UseSockets(th
2424
static Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransportOptions.CreateDefaultBoundListenSocket(System.Net.EndPoint! endpoint) -> System.Net.Sockets.Socket!
2525
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransportOptions.CreateBoundListenSocket.get -> System.Func<System.Net.EndPoint!, System.Net.Sockets.Socket!>!
2626
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransportOptions.CreateBoundListenSocket.set -> void
27-
~Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransportFactory.SocketTransportFactory(Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransportOptions!>! options, Microsoft.Extensions.Logging.ILoggerFactory! loggerFactory, Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.ISocketConnectionContextFactory! contextFactory) -> void
27+
~Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransportFactory.SocketTransportFactory(Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransportOptions!>! options, Microsoft.Extensions.Logging.ILoggerFactory! loggerFactory, Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketConnectionContextFactory! contextFactory) -> void

src/Servers/Kestrel/Transport.Sockets/src/SocketConnectionContextFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets
1010
/// <summary>
1111
/// A factory for socket based connections contexts.
1212
/// </summary>
13-
public sealed class SocketConnectionContextFactory : ISocketConnectionContextFactory
13+
public sealed class SocketConnectionContextFactory
1414
{
1515
/// <summary>
1616
/// Create a <see cref="ConnectionContext"/> for a socket.

src/Servers/Kestrel/Transport.Sockets/src/SocketConnectionListener.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ internal sealed class SocketConnectionListener : IConnectionListener
2323
private Socket? _listenSocket;
2424
private int _settingsIndex;
2525
private readonly SocketTransportOptions _options;
26-
private readonly ISocketConnectionContextFactory _contextFactory;
26+
private readonly SocketConnectionContextFactory _contextFactory;
2727

2828
public EndPoint EndPoint { get; private set; }
2929

3030
internal SocketConnectionListener(
3131
EndPoint endpoint,
3232
SocketTransportOptions options,
33-
ISocketConnectionContextFactory contextFactory,
33+
SocketConnectionContextFactory contextFactory,
3434
ISocketsTrace trace)
3535
{
3636
EndPoint = endpoint;

src/Servers/Kestrel/Transport.Sockets/src/SocketTransportFactory.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets
1818
public sealed class SocketTransportFactory : IConnectionListenerFactory
1919
{
2020
private readonly SocketTransportOptions _options;
21-
private readonly ISocketConnectionContextFactory _contextFactory;
21+
private readonly SocketConnectionContextFactory _contextFactory;
2222
private readonly SocketsTrace _trace;
2323

2424
public SocketTransportFactory(
2525
IOptions<SocketTransportOptions> options,
2626
ILoggerFactory loggerFactory,
27-
ISocketConnectionContextFactory contextFactory)
27+
SocketConnectionContextFactory contextFactory)
2828
{
2929
if (options == null)
3030
{

src/Servers/Kestrel/Transport.Sockets/src/WebHostBuilderSocketExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public static IWebHostBuilder UseSockets(this IWebHostBuilder hostBuilder)
2727
return hostBuilder.ConfigureServices(services =>
2828
{
2929
services.AddSingleton<IConnectionListenerFactory, SocketTransportFactory>();
30-
services.AddSingleton<ISocketConnectionContextFactory, SocketConnectionContextFactory>();
30+
services.AddSingleton<SocketConnectionContextFactory>();
3131
});
3232
}
3333

0 commit comments

Comments
 (0)