src/packages/EmbedIO/WebServerExtensions-SessionManager.cs
/// <summary>
/// Sets the session manager on an <see cref="IWebServer"/>.
/// </summary>
/// <typeparam name="TWebServer">The type of the web server.</typeparam>
/// <param name="this">The <see cref="IWebServer"/> on which this method is called.</param>
/// <param name="sessionManager">The session manager.</param>
/// <returns><paramref name="this"/> with the session manager set.</returns>
/// <exception cref="NullReferenceException"><paramref name="this"/> is <see langword="null"/>.</exception>
/// <exception cref="InvalidOperationException">The web server has already been started.</exception>
Sets the session manager on an .
Sets the session manager on an .
public static TWebServer WithSessionManager<TWebServer>(this TWebServer @this, ISessionManager sessionManager)
            where TWebServer : IWebServer
        {
            @this.SessionManager = sessionManager;
            return @this;
        }
public static TWebServer WithSessionManager < TWebServer > ( this TWebServer @this , ISessionManager sessionManager ) where TWebServer : IWebServer { @this . SessionManager = sessionManager ; return @this ; }
Sets the session manager on an .
Sets the session manager on an .
with the session manager set.
with the session manager set .
None
The web server has already been started.
The web server has already been started .
TWebServer
this
sessionManager
ISessionManager
The session manager.
The session manager .
this
The  on which this method is called.
The on which this method is called .
typeparam
The type of the web server.
The type of the web server .