Interface IEmulatedPortStore
A global store that persists controller settings for a set of emulated ports.
Namespace: Snowflake.Orchestration.Extensibility
Assembly: Snowflake.Framework.Primitives.dll
Syntax
public interface IEmulatedPortStore
Methods
ClearPort(IEmulatorOrchestrator, PlatformId, Int32)
Clears the given port for the given IEmulator
Declaration
void ClearPort(IEmulatorOrchestrator orchestrator, PlatformId platform, int portNumber)
Parameters
Type | Name | Description |
---|---|---|
IEmulator |
orchestrator | The IEmulator |
Platform |
platform | The Platform |
System. |
portNumber | The port number to clear. |
EnumeratePorts(IEmulatorOrchestrator, PlatformId)
Retrieves all IEmulated
Declaration
IEnumerable<IEmulatedPortDeviceEntry> EnumeratePorts(IEmulatorOrchestrator orchestrator, PlatformId platform)
Parameters
Type | Name | Description |
---|---|---|
IEmulator |
orchestrator | The IEmulator |
Platform |
platform | The Platform |
Returns
Type | Description |
---|---|
System. |
All IEmulated |
GetPort(IEmulatorOrchestrator, PlatformId, Int32)
Gets the saved IEmulated
Declaration
IEmulatedPortDeviceEntry GetPort(IEmulatorOrchestrator orchestrator, PlatformId platform, int portNumber)
Parameters
Type | Name | Description |
---|---|---|
IEmulator |
orchestrator | The IEmulator |
Platform |
platform | The Stone Platform |
System. |
portNumber | The port number. |
Returns
Type | Description |
---|---|
IEmulated |
SetPort(IEmulatorOrchestrator, PlatformId, Int32, ControllerId, Guid, InputDriver, Guid)
Sets the saved IEmulated
Use Clear
Declaration
void SetPort(IEmulatorOrchestrator orchestrator, PlatformId platform, int portNumber, ControllerId controller, Guid deviceInstanceGuid, InputDriver instanceDriver, Guid inputProfile)
Parameters
Type | Name | Description |
---|---|---|
IEmulator |
orchestrator | The IEmulator |
Platform |
platform | The Platform |
System. |
portNumber | The port number to assign. |
Controller |
controller | The Controller |
System. |
deviceInstanceGuid | The real IInput |
Input |
instanceDriver | The Input |
System. |
inputProfile | The Profile GUID of the input profile to use. |