Photomechanics API
Photomechanics.Photo3DStudio.Common.ComponentBasedDeviceApiBase Class Referenceabstract

Default components holder implementation. More...

Inheritance diagram for Photomechanics.Photo3DStudio.Common.ComponentBasedDeviceApiBase:
[legend]

Public Member Functions

async Task Initialize ()
 Initialize connection with device.
 
TComponent GetComponent< TComponent > ()
 Get component of given type.
 
void Dispose ()
 

Protected Member Functions

abstract Task OnInitializing ()
 Initialize connection with turn table. More...
 
virtual void Dispose (Boolean disposing)
 Standard Dispose pattern. More...
 
void InitializeComponents (IEnumerable< IDeviceApiComponent > components)
 Initialize components set. More...
 
void InitializeComponents (params IDeviceApiComponent[] components)
 Initialize components set. More...
 

Properties

Boolean IsDisposed [get]
 
- Properties inherited from Photomechanics.Photo3DStudio.Common.Interfaces.IDisposableExtended
Boolean IsDisposed [get]
 Determines whether the object is being disposed or already disposed and no longer functional. More...
 

Events

TypedEventHandler< IDisposableExtendedDisposed
 
- Events inherited from Photomechanics.Photo3DStudio.Common.Interfaces.IDisposableExtended
TypedEventHandler< IDisposableExtendedDisposed
 Occurs when object is disposed. More...
 

Detailed Description

Default components holder implementation.

Member Function Documentation

◆ OnInitializing()

abstract Task Photomechanics.Photo3DStudio.Common.ComponentBasedDeviceApiBase.OnInitializing ( )
protectedpure virtual

◆ Dispose()

virtual void Photomechanics.Photo3DStudio.Common.ComponentBasedDeviceApiBase.Dispose ( Boolean  disposing)
protectedvirtual

◆ InitializeComponents() [1/2]

void Photomechanics.Photo3DStudio.Common.ComponentBasedDeviceApiBase.InitializeComponents ( IEnumerable< IDeviceApiComponent components)
protected

Initialize components set.

Parameters
componentsComponents to be exposed to API consumers.

◆ InitializeComponents() [2/2]

void Photomechanics.Photo3DStudio.Common.ComponentBasedDeviceApiBase.InitializeComponents ( params IDeviceApiComponent []  components)
protected

Initialize components set.

Parameters
componentsComponents to be exposed to API consumers.