Unosquare
    Show / Hide Table of Contents

    Class WebServerOptions

    Contains options for configuring an instance of WebServer.

    Inheritance
    Object
    WebServerOptionsBase
    WebServerOptions
    Inherited Members
    WebServerOptionsBase.SupportCompressedRequests
    WebServerOptionsBase.Lock()
    Namespace: EmbedIO
    Syntax
    public sealed class WebServerOptions : WebServerOptionsBase

    Properties

    AutoLoadCertificate

    Gets or sets a value indicating whether to automatically load the X.509 certificate.

    Declaration
    public bool AutoLoadCertificate { get; set; }
    Property Value
    Type Description
    Boolean

    AutoRegisterCertificate

    Gets or sets a value indicating whether to automatically bind the X.509 certificate to the port used for HTTPS.

    Declaration
    public bool AutoRegisterCertificate { get; set; }
    Property Value
    Type Description
    Boolean

    Certificate

    Gets or sets the X.509 certificate to use for SSL connections.

    Declaration
    public X509Certificate2? Certificate { get; set; }
    Property Value
    Type Description
    Nullable<X509Certificate2>

    CertificateThumbprint

    Gets or sets the thumbprint of the X.509 certificate to use for SSL connections.

    Declaration
    public string CertificateThumbprint { get; set; }
    Property Value
    Type Description
    String

    Mode

    Gets or sets the type of HTTP listener.

    Declaration
    public HttpListenerMode Mode { get; set; }
    Property Value
    Type Description
    HttpListenerMode
    See Also
    HttpListenerMode

    StoreLocation

    Gets or sets a value indicating the location of the X.509 certificate store where to load the certificate from.

    Declaration
    public StoreLocation StoreLocation { get; set; }
    Property Value
    Type Description
    StoreLocation

    StoreName

    Gets or sets a value indicating the X.509 certificate store where to load the certificate from.

    Declaration
    public StoreName StoreName { get; set; }
    Property Value
    Type Description
    StoreName

    UrlPrefixes

    Gets the URL prefixes.

    Declaration
    public IReadOnlyList<string> UrlPrefixes { get; }
    Property Value
    Type Description
    IReadOnlyList<String>

    Methods

    AddUrlPrefix(String)

    Adds a URL prefix.

    Declaration
    public void AddUrlPrefix(string prefix)
    Parameters
    Type Name Description
    String prefix

    The URL prefix.

    Comments

    Back to top Copyright © 2017-2019 Unosquare