You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 18, 2018. It is now read-only.
For right now, there is no change in the behavior of the WebHostBuilder extension method .UseUrls() as long as UseHttps() nor any other IConnectionFilter is configured.
The main breaking change is that KestrelServerOptions.ConnectionFilter has been removed and replaced with ListenOptions.ConnectionAdapters. Since connection filters are no longer global, but instead per-endpoint, the IConnectionFilter interface has been removed and replaced with IConnectionAdapter. The entire Microsoft.AspNetCore.Server.Kestrel.Filter namespace has been removed and replaced with the Microsoft.AspNetCore.Server.Kestrel.Adapter namespace.
This means that any extension methods that add a global connection filter to KestrelServerOptions (namely UseHttps() and UseConnectionLogging()) are now ListenOptions extension methods.
The second breaking change is that KestrelServerOptions.NoDelay has been moved to ListenOptions.NoDelay.
The following description of the new Kestrel endpoint configuration API mostly comes from #996.
Added an extension method to KestrelServerOptions for binding to a TCP socket. There is no overload on .Listen() that allows you to configure an SSL cert without using an options lambda.
Added an extension method to KestrelServerOptions for binding to a unix socket. There is no overload on .ListenUnixSocket() that allows you to configure an SSL cert without using an options lambda.
Added an extension method to KestrelServerOptions for binding to a file descriptor. There is no overload on .ListenHandle() that allows you to configure an SSL cert without using an options lambda.
Given that the file descriptor will be used will oftentimes be used with systemd socket activation (Support systemd socket activation #1057), provide an extension method to KestrelServerOptions that parses the environment variable set by systemd and binds to that file descriptor. This method will no-op if the requisite environment variable has not been set (Similar to how .UseIISIntegration() no-ops).
We are closing this issue because no further action is planned for this issue. If you still have any issues or questions, please log a new issue with any additional details that you have.
For right now, there is no change in the behavior of the
WebHostBuilder
extension method.UseUrls()
as long asUseHttps()
nor any other IConnectionFilter is configured.The main breaking change is that
KestrelServerOptions.ConnectionFilter
has been removed and replaced withListenOptions.ConnectionAdapters
. Since connection filters are no longer global, but instead per-endpoint, theIConnectionFilter
interface has been removed and replaced withIConnectionAdapter
. The entireMicrosoft.AspNetCore.Server.Kestrel.Filter
namespace has been removed and replaced with theMicrosoft.AspNetCore.Server.Kestrel.Adapter
namespace.This means that any extension methods that add a global connection filter to
KestrelServerOptions
(namelyUseHttps()
andUseConnectionLogging()
) are nowListenOptions
extension methods.The second breaking change is that
KestrelServerOptions.NoDelay
has been moved toListenOptions.NoDelay
.The following description of the new Kestrel endpoint configuration API mostly comes from #996.
KestrelServerOptions
for binding to a TCP socket. There is no overload on.Listen()
that allows you to configure an SSL cert without using an options lambda.KestrelServerOptions
for binding to a unix socket. There is no overload on.ListenUnixSocket()
that allows you to configure an SSL cert without using an options lambda.KestrelServerOptions
for binding to a file descriptor. There is no overload on.ListenHandle()
that allows you to configure an SSL cert without using an options lambda.KestrelServerOptions
that parses the environment variable set by systemd and binds to that file descriptor. This method will no-op if the requisite environment variable has not been set (Similar to how.UseIISIntegration()
no-ops).There is a follow-up issue to make it easier to configure Kestrel endpoints from config given the new Listen* APIs.
The text was updated successfully, but these errors were encountered: