Server Class |
Namespace: Crosser.Server
public class Server : IServer, IDisposable
The Server type exposes the following members.
Name | Description | |
---|---|---|
Connections |
All connected clients
| |
ControllerFactory |
Storage/factory for all controllers
| |
Endpoints |
All configured endpoints IBaseEndpoint | |
Framework |
Returns the framework version that the server is running on NET46, NETSTANDARD1.6 etc
| |
Id |
Generated at the creation of the server object. New id for every instance
| |
OnStarted |
Event that will fire when the server is started
| |
OnStopped |
Event that will fire when the server is stopped
| |
ProtocolVersions |
The enabled ProtocolVersions | |
Running |
Current state of the server
| |
Started |
The datetime (as a string) when the server was started
| |
Statistics |
Statistics for the server IServerStatistics | |
Version |
Returns the assembly version for the server
|
Name | Description | |
---|---|---|
Config |
Returns the server configuration as JSON
| |
Dispose |
If running the server is stopped and disposed
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Start |
Starts the server with a specific LogLevel
| |
Stop |
Stops the server and dispose all endpoints (close all connections)
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |