Click or drag to resize

Server Class

Main container. This object holds endpoints, connections, statistics etc Use this to start up your communication server.
Inheritance Hierarchy
SystemObject
  Crosser.ServerServer

Namespace:  Crosser.Server
Assembly:  Crosser.Server (in Crosser.Server.dll) Version: 0.0.5
Syntax
C#
public class Server : IServer, IDisposable

The Server type exposes the following members.

Constructors
  NameDescription
Public methodServer
Ctor
Top
Properties
  NameDescription
Public propertyConnections
All connected clients
Public propertyControllerFactory
Storage/factory for all controllers
Public propertyEndpoints
All configured endpoints IBaseEndpoint
Public propertyFramework
Returns the framework version that the server is running on NET46, NETSTANDARD1.6 etc
Public propertyId
Generated at the creation of the server object. New id for every instance
Public propertyOnStarted
Event that will fire when the server is started
Public propertyOnStopped
Event that will fire when the server is stopped
Public propertyProtocolVersions
The enabled ProtocolVersions
Public propertyRunning
Current state of the server
Public propertyStarted
The datetime (as a string) when the server was started
Public propertyStatistics
Statistics for the server IServerStatistics
Public propertyVersion
Returns the assembly version for the server
Top
Methods
  NameDescription
Public methodConfig
Returns the server configuration as JSON
Public methodDispose
If running the server is stopped and disposed
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.)
Public methodStart
Starts the server with a specific LogLevel
Public methodStop
Stops the server and dispose all endpoints (close all connections)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also