C# Class ServerInfoManager

Inheritance: IDisposable
Show file Open project: buronix/LLApi-Basic-Implementation Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
PlayerStatusUpdate ( String UserName, bool connectedStatus, float ServerTime ) : void

Send an Update to all Clients of the Status Connection of a Player

Order: String UserName bool ConnectedStatus float ServerTime

ServerInfoManager ( GameServer, gameServer ) : System.Collections.Generic
Start ( int workerCount ) : void
addMessageToQueue ( InputMessage, message ) : void

Private Methods

Method Description
DisconnectRequest ( InputMessage, message ) : void

Disconnect the User from The System

Order: String TokenID

DisconnectResponse ( int connectionID, bool success, string detailMessage ) : void

Return the DisconnectResponse to the client

Order: String success String detailMessage float serverTime

HandleMessage ( InputMessage, message ) : void
LoginRequest ( InputMessage, message ) : void

Login the User in The System

Order: String UserID

LoginResponse ( int connectionID, bool success, string token, string detailMessage ) : void

Sends a response to the Login Attempt

Order: bool Success string token string detailMessage float serverTime

MessagesConsumer ( ) : void
ServerInfoRequest ( InputMessage, message ) : void

Request for Server Information

Order: String TokenID

ServerInfoResponse ( int connectionID, bool success, string detailMessage ) : void

Return Information of the Server

Order: bool success float ServerTime string detailMessage ushort ConnetedUserCount -> UserNames Length string[] UserNames

Method Details

Dispose() public method

public Dispose ( ) : void
return void

PlayerStatusUpdate() public method

Send an Update to all Clients of the Status Connection of a Player
Order: String UserName bool ConnectedStatus float ServerTime
public PlayerStatusUpdate ( String UserName, bool connectedStatus, float ServerTime ) : void
UserName String
connectedStatus bool
ServerTime float
return void

ServerInfoManager() public method

public ServerInfoManager ( GameServer, gameServer ) : System.Collections.Generic
gameServer GameServer,
return System.Collections.Generic

Start() public method

public Start ( int workerCount ) : void
workerCount int
return void

addMessageToQueue() public method

public addMessageToQueue ( InputMessage, message ) : void
message InputMessage,
return void