C# Class OpenNos.ServiceRef.Internal.FakeCommunicationService

Inheritance: CommunicationServiceReference.ICommunicationService
Datei anzeigen Open project: OpenNos/OpenNos

Public Methods

Method Description
AccountIsConnected ( string accountName ) : bool

Checks if the Account has a connected Character

AccountIsConnectedAsync ( string accountName ) : Task
Cleanup ( ) : void

Cleanup hold Data, this is for restarting the server

CleanupAsync ( ) : System.Threading.Tasks.Task
ConnectAccount ( string accountName, int sessionId ) : bool

Registers that the given Account has now logged in

ConnectAccountAsync ( string accountName, int sessionId ) : Task
ConnectCharacter ( string characterName, string accountName ) : bool

Registers that the given Character has now logged in

ConnectCharacterAsync ( string characterName, string accountName ) : Task
DisconnectAccount ( string accountName ) : void

Disconnect Account from server.

DisconnectAccountAsync ( string accountName ) : System.Threading.Tasks.Task
DisconnectCharacter ( string characterName, long characterId ) : void

Disconnect character from server.

DisconnectCharacterAsync ( string characterName, long characterId ) : System.Threading.Tasks.Task
HasRegisteredAccountLogin ( string accountName, long sessionId ) : bool

Checks if the Account is allowed to login, removes the permission to login

HasRegisteredAccountLoginAsync ( string name, long sessionId ) : Task
RegisterAccountLogin ( string accountName, long sessionId ) : void

Register Account for Login (Verification for Security)

RegisterAccountLoginAsync ( string name, long sessionId ) : System.Threading.Tasks.Task

Method Details

AccountIsConnected() public method

Checks if the Account has a connected Character
public AccountIsConnected ( string accountName ) : bool
accountName string Name of the Account
return bool

AccountIsConnectedAsync() public method

public AccountIsConnectedAsync ( string accountName ) : Task
accountName string
return Task

Cleanup() public method

Cleanup hold Data, this is for restarting the server
public Cleanup ( ) : void
return void

CleanupAsync() public method

public CleanupAsync ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

ConnectAccount() public method

Registers that the given Account has now logged in
public ConnectAccount ( string accountName, int sessionId ) : bool
accountName string Name of the Account.
sessionId int SessionId of the login.
return bool

ConnectAccountAsync() public method

public ConnectAccountAsync ( string accountName, int sessionId ) : Task
accountName string
sessionId int
return Task

ConnectCharacter() public method

Registers that the given Character has now logged in
public ConnectCharacter ( string characterName, string accountName ) : bool
characterName string Name of the Character.
accountName string Account of the Character to login.
return bool

ConnectCharacterAsync() public method

public ConnectCharacterAsync ( string characterName, string accountName ) : Task
characterName string
accountName string
return Task

DisconnectAccount() public method

Disconnect Account from server.
public DisconnectAccount ( string accountName ) : void
accountName string Account who wants to disconnect.
return void

DisconnectAccountAsync() public method

public DisconnectAccountAsync ( string accountName ) : System.Threading.Tasks.Task
accountName string
return System.Threading.Tasks.Task

DisconnectCharacter() public method

Disconnect character from server.
public DisconnectCharacter ( string characterName, long characterId ) : void
characterName string Character who wants to disconnect.
characterId long
return void

DisconnectCharacterAsync() public method

public DisconnectCharacterAsync ( string characterName, long characterId ) : System.Threading.Tasks.Task
characterName string
characterId long
return System.Threading.Tasks.Task

HasRegisteredAccountLogin() public method

Checks if the Account is allowed to login, removes the permission to login
public HasRegisteredAccountLogin ( string accountName, long sessionId ) : bool
accountName string Name of the Account.
sessionId long SessionId to check for validity.
return bool

HasRegisteredAccountLoginAsync() public method

public HasRegisteredAccountLoginAsync ( string name, long sessionId ) : Task
name string
sessionId long
return Task

RegisterAccountLogin() public method

Register Account for Login (Verification for Security)
public RegisterAccountLogin ( string accountName, long sessionId ) : void
accountName string Name of the Account
sessionId long SessionId for the valid connection.
return void

RegisterAccountLoginAsync() public method

public RegisterAccountLoginAsync ( string name, long sessionId ) : System.Threading.Tasks.Task
name string
sessionId long
return System.Threading.Tasks.Task