src/packages/EmbedIO/WebServerOptionsExtensions.cs
/// <summary>
/// Sets the X.509 certificate to use for SSL connections.
/// </summary>
/// <param name="this">The <see cref="WebServerOptions"/> on which this method is called.</param>
/// <param name="value">The X.509 certificate to use for SSL connections.</param>
/// <returns><paramref name="this"/> with its <see cref="WebServerOptions.Certificate">Certificate</see> property
/// set to <paramref name="value"/>.</returns>
/// <exception cref="NullReferenceException"><paramref name="this"/> is <see langword="null"/>.</exception>
/// <exception cref="InvalidOperationException">The configuration of <paramref name="this"/> is locked.</exception>
Sets the X.509 certificate to use for SSL connections.
Sets the X . 509 certificate to use for SSL connections .
public static WebServerOptions WithCertificate(this WebServerOptions @this, X509Certificate2 value)
        {
            @this.Certificate = value;
            return @this;
        }
public static WebServerOptions WithCertificate ( this WebServerOptions @this , X509Certificate2 value ) { @this . Certificate = value ; return @this ; }
Sets the X.509 certificate to use for SSL connections.
Sets the X . 509 certificate to use for SSL connections .
with its Certificate.
with its Certificate .
None
The configuration of  is locked.
The configuration of is locked .
WebServerOptions
this
value
X509Certificate2
The X.509 certificate to use for SSL connections.
The X . 509 certificate to use for SSL connections .
this
The  on which this method is called.
The on which this method is called .