Click or drag to resize

MonitorEndpoint Class

Endpoint that will allow server configuration and server statistics to be sent to clients connected on the endpoint
Inheritance Hierarchy

Namespace:  Crosser.Server.Modules.Endpoint
Assembly:  Crosser.Server (in Crosser.Server.dll) Version: 0.0.5
Syntax
C#
public class MonitorEndpoint : HttpEndpoint, 
	IMonitorEndpoint, IHttpEndpoint, IBaseEndpoint, IDisposable

The MonitorEndpoint type exposes the following members.

Constructors
  NameDescription
Public methodMonitorEndpoint
Ctor
Top
Properties
  NameDescription
Public propertyAllowedOrigins
Accepts all origins by default ('*'). See AllowedOrigins for example
(Inherited from HttpEndpoint.)
Public propertyAllowedPingFails
How many continous failed pings is allowed before disposing the connection?
(Inherited from BaseEndpoint.)
Public propertyAuthRequired
True if the client need to authenticate before being able to send/receive other data. If true the client have to authenticate before the AuthTimeout expires.
(Inherited from BaseEndpoint.)
Public propertyBacklog
How large the backlog for incoming connections will be
(Inherited from BaseEndpoint.)
Public propertyCertificate
The server-side certificate X509Certificate2. Certificates can be loaded with the helper => GetCertificateFromStore(String, StoreLocation)
(Inherited from BaseEndpoint.)
Public propertyCertificateRequired
If true the client need to provide a certificate
(Inherited from BaseEndpoint.)
Public propertyInteractive
If true the full-duplex client will get confirmation messages for every operation. Default is true, but client can turn of when sending initial message of just by calling interact+/interact-.
(Inherited from BaseEndpoint.)
Public propertyIPEndpoint
Connection endpoint
(Inherited from BaseEndpoint.)
Public propertyLocation
The location of the endpoint, default is 'localhost'
(Inherited from BaseEndpoint.)
Public propertyPassword
Basic authentication Password
Public propertyPingTimeout
The PING timeout for this endpoint. Less or equal to zero will disable PING/PONG on the endpoint. By default this is set to PingTimeout
(Inherited from BaseEndpoint.)
Public propertyPort
Port number for the endpoint
(Inherited from BaseEndpoint.)
Public propertyReadBufferSize
Size of the read buffer for the ITransport on the endpoint
(Inherited from BaseEndpoint.)
Public propertyRoot
Path to dashboard
Public propertyRootIsRelative
If true the root-path is expected to be relative to execution folder. If false the root-path is expected to be absolute
Public propertySecureRequired
True if the endpoint uses encrypted communication
(Inherited from BaseEndpoint.)
Public propertyServer
Reference to the IServer
(Inherited from BaseEndpoint.)
Public propertySslProtocols
The accepted SslProtocols. Default is Tls12
(Inherited from BaseEndpoint.)
Public propertyUseNagleAlgorithm
Default true
(Inherited from BaseEndpoint.)
Public propertyUsername
Basic authentication UserName
Public propertyWriteBufferSize
Size of the write buffer for the ITransport on the endpoint
(Inherited from BaseEndpoint.)
Top
Methods
  NameDescription
Public methodConfig
Returns a JSON representation of the MonitorEndpoint configuration
(Overrides HttpEndpointConfig.)
Public methodDispose
Cleans up resources and stop accepting client
(Inherited from BaseEndpoint.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodProcessConnectionAttempt
Creates the endpoints IHttpTransport and setup the streams for IHttpMonitor
(Overrides HttpEndpointProcessConnectionAttempt(Socket).)
Public methodStart
Starts listening for connections on the specified location:port
(Overrides HttpEndpointStart.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also