AR Design
UBC EML collab with UBC SALA - visualizing IoT data in AR
HoloToolkit.Sharing.SessionExtensions Class Reference

Extensions methods for the Session class. More...

Static Public Member Functions

static string GetUnusedName (this Session session, string baseName, int excludedUserId=int.MaxValue)
 Returns an unused username that can be used for this session. More...
 
static string GetUnusedName (this Session session, string baseName, int excludedUserId, List< string > cachedList)
 Returns an unused username that can be used for this session. More...
 

Detailed Description

Extensions methods for the Session class.

Definition at line 11 of file SessionExtensions.cs.

Member Function Documentation

§ GetUnusedName() [1/2]

static string HoloToolkit.Sharing.SessionExtensions.GetUnusedName ( this Session  session,
string  baseName,
int  excludedUserId = int.MaxValue 
)
static

Returns an unused username that can be used for this session.

Parameters
sessionSession object for which this is being called.
baseNameBase name to use for the username.
excludedUserIdUser ID whose username excluded from the unique name check. If not specified, all users in the session will be taken into account to find a unique name.
Returns

Definition at line 24 of file SessionExtensions.cs.

§ GetUnusedName() [2/2]

static string HoloToolkit.Sharing.SessionExtensions.GetUnusedName ( this Session  session,
string  baseName,
int  excludedUserId,
List< string >  cachedList 
)
static

Returns an unused username that can be used for this session.

Parameters
sessionSession object for which this is being called.
baseNameBase name to use for the username.
excludedUserIdUser ID whose username excluded from the unique name check. If not specified, all users in the session will be taken into account to find a unique name.
cachedListCached list that can be provided to avoid extra memory allocations.
Returns

Definition at line 43 of file SessionExtensions.cs.


The documentation for this class was generated from the following file: