C# Class SessionManagerUniversal.UI.Network.XToolsApp

Inheritance: IDisposable
Mostra file Open project: Microsoft/HoloToolkit Class Usage Examples

Public Properties

Property Type Description
LogWriter ConsoleLogWriter

Public Methods

Method Description
Connect ( string server, string userName = "TestUserUniversal", int port = 20602, ClientRole clientRole = ClientRole.Primary ) : void
CreateSession ( string sessionName ) : bool
Disconnect ( ) : void
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

JoinSession ( string sessionName ) : bool
LeaveSession ( ) : void
Update ( ) : void
XToolsApp ( ) : System

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources.

Private Methods

Method Description
BeginPairing ( ) : bool
CleanupNetworkObjects ( ) : void
LogWriteLine ( string message ) : void
OnSessionConnected ( NetworkConnection connection ) : void
OnSessionConnectionFailed ( NetworkConnection connection ) : void
OnSessionDisconnected ( NetworkConnection connection ) : void
OnViewerConnected ( NetworkConnection connection ) : void
OnViewerConnectionFailed ( NetworkConnection connection ) : void
OnViewerDisconnected ( NetworkConnection connection ) : void

Method Details

Connect() public method

public Connect ( string server, string userName = "TestUserUniversal", int port = 20602, ClientRole clientRole = ClientRole.Primary ) : void
server string
userName string
port int
clientRole ClientRole
return void

CreateSession() public method

public CreateSession ( string sessionName ) : bool
sessionName string
return bool

Disconnect() public method

public Disconnect ( ) : void
return void

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

Dispose() protected method

Releases unmanaged and - optionally - managed resources.
protected Dispose ( bool disposing ) : void
disposing bool True to release both managed and unmanaged resources; False to release only unmanaged resources.
return void

JoinSession() public method

public JoinSession ( string sessionName ) : bool
sessionName string
return bool

LeaveSession() public method

public LeaveSession ( ) : void
return void

Update() public method

public Update ( ) : void
return void

XToolsApp() public method

public XToolsApp ( ) : System
return System

Property Details

LogWriter public_oe property

public ConsoleLogWriter LogWriter
return ConsoleLogWriter