C# Class Universe.Framework.SceneInfo.ClientManager

Maps from client AgentID and RemoteEndPoint values to IClientAPI references for all of the connected clients
Afficher le fichier Open project: Virtual-Universe/Virtual-Universe

Méthodes publiques

Méthode Description
Add ( IClientAPI value ) : bool

Add a client reference to the collection if it does not already exist

Clear ( ) : void

Resets the client collection

ClientManager ( ) : System

Default constructor

ContainsKey ( IPEndPoint key ) : bool

Checks if an endpoint is in the collection

ContainsKey ( UUID key ) : bool

Checks if a UUID is in the collection

ForEach ( Action action ) : void

Performs a given task in parallel for each of the elements in the collection

ForEachSync ( Action action ) : void

Performs a given task synchronously for each of the elements in the collection

Remove ( UUID key ) : bool

Remove a client from the collection

TryGetValue ( IPEndPoint key, IClientAPI &value ) : bool

Attempts to fetch a value out of the collection

TryGetValue ( UUID key, IClientAPI &value ) : bool

Attempts to fetch a value out of the collection

Method Details

Add() public méthode

Add a client reference to the collection if it does not already exist
public Add ( IClientAPI value ) : bool
value IClientAPI Reference to the client object
Résultat bool

Clear() public méthode

Resets the client collection
public Clear ( ) : void
Résultat void

ClientManager() public méthode

Default constructor
public ClientManager ( ) : System
Résultat System

ContainsKey() public méthode

Checks if an endpoint is in the collection
public ContainsKey ( IPEndPoint key ) : bool
key System.Net.IPEndPoint Endpoint to check for
Résultat bool

ContainsKey() public méthode

Checks if a UUID is in the collection
public ContainsKey ( UUID key ) : bool
key UUID UUID to check for
Résultat bool

ForEach() public méthode

Performs a given task in parallel for each of the elements in the collection
public ForEach ( Action action ) : void
action Action Action to perform on each element
Résultat void

ForEachSync() public méthode

Performs a given task synchronously for each of the elements in the collection
public ForEachSync ( Action action ) : void
action Action Action to perform on each element
Résultat void

Remove() public méthode

Remove a client from the collection
public Remove ( UUID key ) : bool
key UUID UUID of the client to remove
Résultat bool

TryGetValue() public méthode

Attempts to fetch a value out of the collection
public TryGetValue ( IPEndPoint key, IClientAPI &value ) : bool
key System.Net.IPEndPoint Endpoint of the client to retrieve
value IClientAPI Retrieved client, or null on lookup failure
Résultat bool

TryGetValue() public méthode

Attempts to fetch a value out of the collection
public TryGetValue ( UUID key, IClientAPI &value ) : bool
key UUID UUID of the client to retrieve
value IClientAPI Retrieved client, or null on lookup failure
Résultat bool