C# Class Universe.Framework.SceneInfo.ClientManager

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

Public Methods

Method 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 method

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
return bool

Clear() public method

Resets the client collection
public Clear ( ) : void
return void

ClientManager() public method

Default constructor
public ClientManager ( ) : System
return System

ContainsKey() public method

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

ContainsKey() public method

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

ForEach() public method

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
return void

ForEachSync() public method

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
return void

Remove() public method

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

TryGetValue() public method

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
return bool

TryGetValue() public method

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
return bool