Show / Hide Table of Contents

Class Xbox

The xbox implementation for deployment of packages.

Inheritance
System.Object
CapabilityBase
DeviceBase
Xbox
Implements
System.IServiceProvider
IDevice
ICapability
IDeviceControllable
IDeviceInput
IFileSystemIOAppPackage
IFileSystemIOSystem
IFileSystemIOTitle
System.IDisposable
IDevicePackages
IDeviceStatus
Inherited Members
DeviceBase.DeviceTypeName
DeviceBase.DeviceTypeDisplayName
DeviceBase.Id
DeviceBase.Name
DeviceBase.Alias
DeviceBase.IPAddress
DeviceBase.DisplayName
DeviceBase.Configuration
DeviceBase.ConfigurationType
DeviceBase.AttachedObjectModel
DeviceBase.DeviceImplementation
DeviceBase.ConnectionStatus
DeviceBase.PhoenixId
DeviceBase.Logger
DeviceBase.Events
CapabilityBase.GetCapabilityInterface<T>()
CapabilityBase.HasCapabilityInterface(Type)
CapabilityBase.HasCapabilityInterface<T>()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Phoenix.Devices
Assembly: Phoenix.Devices.Xbox.dll
Syntax
public sealed class Xbox : DeviceBase, IServiceProvider, IDevice, ICapability, IDeviceControllable, IDeviceInput, IFileSystemIOAppPackage, IFileSystemIOSystem, IFileSystemIOTitle, IDisposable, IDeviceStatus

Constructors

View Source

Xbox(IPAddress, String, String, IPhoenixLogger, XboxConnectionInfo, String, IEventAggregator, Guid)

Initializes a new instance of the Xbox class.

Declaration
public Xbox(IPAddress deviceIP, string name, string alias, IPhoenixLogger logger, XboxConnectionInfo connectionInfo, string consoleId, IEventAggregator events, Guid phoenixId)
Parameters
Type Name Description
System.Net.IPAddress deviceIP

The IP address of the device.

System.String name

The name of the device.

System.String alias

The alias of the device if known.

IPhoenixLogger logger

The current logger.

XboxConnectionInfo connectionInfo

Contains the XDK access key and device portal auth settings.

System.String consoleId

The expected console id that will be matched to the id the console provides.

IEventAggregator events

The event aggregator service.

System.Guid phoenixId

The id for the device.

Fields

View Source

SystemPackageRegex

Gets the regex used to determine if a package is a system package.

Declaration
public static readonly Regex SystemPackageRegex
Field Value
Type Description
System.Text.RegularExpressions.Regex

Properties

View Source

AccessKey

Gets or sets the XDK access key for this device.

Declaration
public string AccessKey { get; set; }
Property Value
Type Description
System.String
View Source

CanRebootDevice

Gets a value indicating whether it's possible to reboot the device in its current state.

Declaration
public bool CanRebootDevice { get; }
Property Value
Type Description
System.Boolean
View Source

ConnectionInfo

Gets the device connection info.

Declaration
public XboxConnectionInfo ConnectionInfo { get; }
Property Value
Type Description
XboxConnectionInfo
View Source

DevicePortalConnectionInfo

Gets or sets the device portal connection info.

Declaration
public DevicePortalConnectionInfo DevicePortalConnectionInfo { get; set; }
Property Value
Type Description
DevicePortalConnectionInfo
View Source

IsDevicePortalConnected

Gets a value indicating whether or not there is a device portal connection.

Declaration
public bool IsDevicePortalConnected { get; }
Property Value
Type Description
System.Boolean
View Source

IsRebooting

Gets a value indicating whether a known reboot is in progress.

Declaration
public bool IsRebooting { get; }
Property Value
Type Description
System.Boolean
View Source

IsXdkConnected

Gets a value indicating whether or not there is a XDK connection.

Declaration
public bool IsXdkConnected { get; }
Property Value
Type Description
System.Boolean
View Source

MaxNumConnectedGamepads

Gets the maximum number of connected gamepads that the device supports at once.

Declaration
public int MaxNumConnectedGamepads { get; }
Property Value
Type Description
System.Int32
View Source

StatusCheckInterval

Gets the duration to wait before refreshing device status.

Declaration
public TimeSpan StatusCheckInterval { get; }
Property Value
Type Description
System.TimeSpan
View Source

SupportedInteractions

Gets the supported interactions for the device. Interactions will throw a DeviceNotSupportedException if an attempt to use an unsupported interaction takes place.

Declaration
public PackageInteractions SupportedInteractions { get; }
Property Value
Type Description
PackageInteractions
View Source

XboxLiveDeviceId

Gets a value representing the XBL device Id.

Declaration
public override string XboxLiveDeviceId { get; }
Property Value
Type Description
System.String
Overrides
DeviceBase.XboxLiveDeviceId

Methods

View Source

AppPackageDirectoryExists(PhoenixPath)

Checks if a directory exists in a System directory.

Declaration
public Task<bool> AppPackageDirectoryExists(PhoenixPath path)
Parameters
Type Name Description
PhoenixPath path

The directory to check.

Returns
Type Description
System.Threading.Tasks.Task<System.Boolean>

True if the directory exists, false if not.

View Source

AppPackageFileExistsAsync(PhoenixPath)

Checks if a file exists in an App Package directory.

Declaration
public Task<bool> AppPackageFileExistsAsync(PhoenixPath path)
Parameters
Type Name Description
PhoenixPath path

The file to check.

Returns
Type Description
System.Threading.Tasks.Task<System.Boolean>

True if the file exists, false if not.

View Source

CheckAllowHeadlessXUserAutomationAsync(String)

Kit config method for checking allow headless xuser automation.

Declaration
[DeviceConfigCheckMethod("Allow Headless XUser Automation", "Xbox")]
public async Task<DeviceConfigResult> CheckAllowHeadlessXUserAutomationAsync(string expectedResult)
Parameters
Type Name Description
System.String expectedResult

The value of allow headless xuser automation we want to set to.

Returns
Type Description
System.Threading.Tasks.Task<DeviceConfigResult>

The kit config result object.

View Source

CheckAvailableStorageAsync(String)

Kit config method for checking the available storage space.

Declaration
[DeviceConfigCheckMethod("Available Storage", "Xbox")]
public async Task<DeviceConfigResult> CheckAvailableStorageAsync(string expectedResult)
Parameters
Type Name Description
System.String expectedResult

The amount of storage space required.

Returns
Type Description
System.Threading.Tasks.Task<DeviceConfigResult>

The kit config result object.

View Source

CheckCrashDumpTypeAsync(String)

Kit config method for checking the crash dump type.

Declaration
[DeviceConfigCheckMethod("Crash Dump Type", "Xbox")]
public async Task<DeviceConfigResult> CheckCrashDumpTypeAsync(string expectedResult)
Parameters
Type Name Description
System.String expectedResult

The type of crash dump to we want to set to.

Returns
Type Description
System.Threading.Tasks.Task<DeviceConfigResult>

The kit config result object.

View Source

CheckDebugMemoryModeAsync(String)

Kit config method for checking the debug memory mode.

Declaration
[DeviceConfigCheckMethod("Debug Memory Mode", "Xbox")]
public async Task<DeviceConfigResult> CheckDebugMemoryModeAsync(string expectedResult)
Parameters
Type Name Description
System.String expectedResult

The type of debug memory mode we want to set to.

Returns
Type Description
System.Threading.Tasks.Task<DeviceConfigResult>

The kit config result object.

View Source

CheckDefaultStorageDeviceAsync(String)

Kit config method for checking the default storage device.

Declaration
[DeviceConfigCheckMethod("Default Storage Device", "Xbox")]
public async Task<DeviceConfigResult> CheckDefaultStorageDeviceAsync(string expectedResult)
Parameters
Type Name Description
System.String expectedResult

The type of storage device we want to set to.

Returns
Type Description
System.Threading.Tasks.Task<DeviceConfigResult>

The kit config result object.

View Source

CheckExtraTitleMemoryAsync(String)

Kit config method for checking the extra title memory.

Declaration
[DeviceConfigCheckMethod("Extra Title Memory (MB)", "Xbox")]
public async Task<DeviceConfigResult> CheckExtraTitleMemoryAsync(string expectedResult)
Parameters
Type Name Description
System.String expectedResult

The extra title memory we want to set to.

Returns
Type Description
System.Threading.Tasks.Task<DeviceConfigResult>

The kit config result object.

View Source

CheckGuestAccessToFileSharesAsync(String)

Kit config method for checking the guest access to file shares settings.

Declaration
[DeviceConfigCheckMethod("Guest Access To File Shares", "Xbox")]
public async Task<DeviceConfigResult> CheckGuestAccessToFileSharesAsync(string expectedResult)
Parameters
Type Name Description
System.String expectedResult

A string that contains the expected guest access setting.

Returns
Type Description
System.Threading.Tasks.Task<DeviceConfigResult>

The kit config results object.

View Source

CheckProfilingModeAsync(String)

Kit config method for checking the profiling mode.

Declaration
[DeviceConfigCheckMethod("Profiling Mode", "Xbox")]
public async Task<DeviceConfigResult> CheckProfilingModeAsync(string expectedResult)
Parameters
Type Name Description
System.String expectedResult

The type of profiling mode we want to set to.

Returns
Type Description
System.Threading.Tasks.Task<DeviceConfigResult>

The kit config result object.

View Source

CheckRecoveryVersionAsync(String)

Kit config method for checking the XDK recovery version.

Declaration
[DeviceConfigCheckMethod("Recovery Version", "Xbox")]
public async Task<DeviceConfigResult> CheckRecoveryVersionAsync(string expectedResult)
Parameters
Type Name Description
System.String expectedResult

A string that contains the expected recovery version number.

Returns
Type Description
System.Threading.Tasks.Task<DeviceConfigResult>

The kit config results object.

View Source

CheckSandboxIdAsync(String)

Kit config method for checking the Sandbox ID.

Declaration
[DeviceConfigCheckMethod("Sandbox ID", "Xbox")]
public async Task<DeviceConfigResult> CheckSandboxIdAsync(string expectedResult)
Parameters
Type Name Description
System.String expectedResult

The version of the XDK we want to flash to.

Returns
Type Description
System.Threading.Tasks.Task<DeviceConfigResult>

The kit config result object.

View Source

CheckToolingMemoryOverflowAsync(String)

Kit config method for checking tooling memory overflow.

Declaration
[DeviceConfigCheckMethod("Tooling Memory Overflow", "Xbox")]
public async Task<DeviceConfigResult> CheckToolingMemoryOverflowAsync(string expectedResult)
Parameters
Type Name Description
System.String expectedResult

The value of tooling overflow memory we want to set to.

Returns
Type Description
System.Threading.Tasks.Task<DeviceConfigResult>

The kit config result object.

View Source

CheckXdkVersionAsync(String)

Kit config method for checking the XDK version.

Declaration
[DeviceConfigCheckMethod("XDK Version", "Xbox")]
public async Task<DeviceConfigResult> CheckXdkVersionAsync(string expectedResult)
Parameters
Type Name Description
System.String expectedResult

The version of the XDK we want to flash to.

Returns
Type Description
System.Threading.Tasks.Task<DeviceConfigResult>

The kit config result object.

View Source

Cleanup()

Performs device cleanup

Declaration
public override void Cleanup()
Overrides
DeviceBase.Cleanup()
View Source

Constrain(IPackage)

Declaration
public Task Constrain(IPackage package)
Parameters
Type Name Description
IPackage package
Returns
Type Description
System.Threading.Tasks.Task
View Source

CopyAppPackageDirectoryAsync(PhoenixPath, PhoenixPath)

Copies a directory from source to destination for app package.

Declaration
public Task CopyAppPackageDirectoryAsync(PhoenixPath source, PhoenixPath destination)
Parameters
Type Name Description
PhoenixPath source

The source.

PhoenixPath destination

The destination.

Returns
Type Description
System.Threading.Tasks.Task

A System.Threading.Tasks.Task representing the result of the asynchronous operation.

View Source

CopyAppPackageFileAsync(PhoenixPath, PhoenixPath)

Copies a file from source to destination for app package.

Declaration
public Task CopyAppPackageFileAsync(PhoenixPath source, PhoenixPath destination)
Parameters
Type Name Description
PhoenixPath source

The source.

PhoenixPath destination

The destination.

Returns
Type Description
System.Threading.Tasks.Task

A System.Threading.Tasks.Task representing the result of the asynchronous operation.

View Source

CopySystemDirectoryAsync(PhoenixPath, PhoenixPath)

Copies a directory from source to destination for system.

Declaration
public Task CopySystemDirectoryAsync(PhoenixPath source, PhoenixPath destination)
Parameters
Type Name Description
PhoenixPath source

The source.

PhoenixPath destination

The destination.

Returns
Type Description
System.Threading.Tasks.Task

A System.Threading.Tasks.Task representing the result of the asynchronous operation.

View Source

CopySystemFileAsync(PhoenixPath, PhoenixPath)

Copies a file from source to destination for system.

Declaration
public Task CopySystemFileAsync(PhoenixPath source, PhoenixPath destination)
Parameters
Type Name Description
PhoenixPath source

The source.

PhoenixPath destination

The destination.

Returns
Type Description
System.Threading.Tasks.Task

A System.Threading.Tasks.Task representing the result of the asynchronous operation.

View Source

CopyTitleDirectoryAsync(PhoenixPath, PhoenixPath)

Copies a directory from source to destination.

Declaration
public Task CopyTitleDirectoryAsync(PhoenixPath source, PhoenixPath destination)
Parameters
Type Name Description
PhoenixPath source

Directory source.

PhoenixPath destination

Copy destination.

Returns
Type Description
System.Threading.Tasks.Task

A System.Threading.Tasks.Task representing the result of the asynchronous operation.

View Source

CopyTitleFileAsync(PhoenixPath, PhoenixPath)

Copies a file from source to destination.

Declaration
public Task CopyTitleFileAsync(PhoenixPath source, PhoenixPath destination)
Parameters
Type Name Description
PhoenixPath source

File source.

PhoenixPath destination

Copy destination.

Returns
Type Description
System.Threading.Tasks.Task

A System.Threading.Tasks.Task representing the result of the asynchronous operation.

View Source

CreateAppPackageDirectoryAsync(PhoenixPath)

Creates a directory in the system directory

Declaration
public Task CreateAppPackageDirectoryAsync(PhoenixPath path)
Parameters
Type Name Description
PhoenixPath path

The path to create the directory.

Returns
Type Description
System.Threading.Tasks.Task

A System.Threading.Tasks.Task representing the result of the asynchronous operation.

View Source

CreateAppPackageFileAsync(PhoenixPath)

Creates a file in the system directory

Declaration
public Task CreateAppPackageFileAsync(PhoenixPath path)
Parameters
Type Name Description
PhoenixPath path

The path to create the file.

Returns
Type Description
System.Threading.Tasks.Task

A System.Threading.Tasks.Task representing the result of the asynchronous operation.

View Source

CreateGamepad()

Creates a virtual gamepad for the device.

Declaration
public Guid CreateGamepad()
Returns
Type Description
System.Guid

The id for the gamepad.

View Source

CreateSystemDirectoryAsync(PhoenixPath)

Creates a directory in the system directory

Declaration
public Task CreateSystemDirectoryAsync(PhoenixPath path)
Parameters
Type Name Description
PhoenixPath path

The path to create the directory.

Returns
Type Description
System.Threading.Tasks.Task

A System.Threading.Tasks.Task representing the result of the asynchronous operation.

View Source

CreateSystemFileAsync(PhoenixPath)

Creates a file in the system directory

Declaration
public Task CreateSystemFileAsync(PhoenixPath path)
Parameters
Type Name Description
PhoenixPath path

The path to create the file.

Returns
Type Description
System.Threading.Tasks.Task

A System.Threading.Tasks.Task representing the result of the asynchronous operation.

View Source

CreateTitleDirectoryAsync(PhoenixPath)

Creates a directory.

Declaration
public Task CreateTitleDirectoryAsync(PhoenixPath path)
Parameters
Type Name Description
PhoenixPath path

The directory to create.

Returns
Type Description
System.Threading.Tasks.Task

A System.Threading.Tasks.Task representing the result of the asynchronous operation.

View Source

CreateTitleFileAsync(PhoenixPath)

Creates a file.

Declaration
public Task CreateTitleFileAsync(PhoenixPath path)
Parameters
Type Name Description
PhoenixPath path

The file to create.

Returns
Type Description
System.Threading.Tasks.Task

A System.Threading.Tasks.Task representing the result of the asynchronous operation.

View Source

DeleteAppPackageDirectoryAsync(PhoenixPath)

Deletes a directory from an App Package directory

Declaration
public Task DeleteAppPackageDirectoryAsync(PhoenixPath path)
Parameters
Type Name Description
PhoenixPath path

The directory path to delete.

Returns
Type Description
System.Threading.Tasks.Task

A System.Threading.Tasks.Task representing the result of the asynchronous operation.

View Source

DeleteAppPackageFileAsync(PhoenixPath)

Deletes a file from an App Package directory

Declaration
public Task DeleteAppPackageFileAsync(PhoenixPath path)
Parameters
Type Name Description
PhoenixPath path

The file path to delete.

Returns
Type Description
System.Threading.Tasks.Task

A System.Threading.Tasks.Task representing the result of the asynchronous operation.

View Source

DeleteSystemDirectoryAsync(PhoenixPath)

Deletes a directory from a System directory

Declaration
public Task DeleteSystemDirectoryAsync(PhoenixPath path)
Parameters
Type Name Description
PhoenixPath path

The directory path to delete.

Returns
Type Description
System.Threading.Tasks.Task

A System.Threading.Tasks.Task representing the result of the asynchronous operation.

View Source

DeleteSystemFileAsync(PhoenixPath)

Deletes a file from a System directory

Declaration
public Task DeleteSystemFileAsync(PhoenixPath path)
Parameters
Type Name Description
PhoenixPath path

The file path to delete.

Returns
Type Description
System.Threading.Tasks.Task

A System.Threading.Tasks.Task representing the result of the asynchronous operation.

View Source

DeleteTitleDirectoryAsync(PhoenixPath)

Deletes a Directory.

Declaration
public Task DeleteTitleDirectoryAsync(PhoenixPath path)
Parameters
Type Name Description
PhoenixPath path

The directory to delete.

Returns
Type Description
System.Threading.Tasks.Task

A System.Threading.Tasks.Task representing the result of the asynchronous operation.

View Source

DeleteTitleFileAsync(PhoenixPath)

Deletes a file.

Declaration
public Task DeleteTitleFileAsync(PhoenixPath path)
Parameters
Type Name Description
PhoenixPath path

The file to delete.

Returns
Type Description
System.Threading.Tasks.Task

A System.Threading.Tasks.Task representing the result of the asynchronous operation.

View Source

DisconnectAllGamepads()

Disconnects all virtual gamepads from the device.

Declaration
public async Task DisconnectAllGamepads()
Returns
Type Description
System.Threading.Tasks.Task

awaitable task

View Source

DisconnectGamepad(Guid)

Disconnects the specified gamepad from the device.

Declaration
public void DisconnectGamepad(Guid gamepadId)
Parameters
Type Name Description
System.Guid gamepadId

The gamepad to disconnect.

View Source

Dispose()

Disposes of the console resources.

Declaration
public void Dispose()
View Source

FindRunningTitleDisplayNameAsync()

Declaration
public async Task<string> FindRunningTitleDisplayNameAsync()
Returns
Type Description
System.Threading.Tasks.Task<System.String>
View Source

FindSystemFilesAsync(PhoenixPath, String)

Recursively looks through the directories under the specified path for files matching the specified pattern.

Declaration
public Task<IEnumerable<PhoenixFileInfo>> FindSystemFilesAsync(PhoenixPath path, string pattern)
Parameters
Type Name Description
PhoenixPath path

Base path to start the search from.

System.String pattern

Pattern to look for in file names, e.g. FileNam.txt No regular expressions. Simple file lookup. Can use wildcard ().

Returns
Type Description
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<PhoenixFileInfo>>

A list of the files that were found. Empty if none.

View Source

FindTitleFilesAsync(PhoenixPath, String)

Recursively looks through the directories under the specified path for files matching the specified pattern.

Declaration
public Task<IEnumerable<PhoenixFileInfo>> FindTitleFilesAsync(PhoenixPath path, string pattern)
Parameters
Type Name Description
PhoenixPath path

Base path to start the search from.

System.String pattern

Pattern to look for in file names, e.g. FileNam.txt No regular expressions. Simple file lookup. Can use wildcard ().

Returns
Type Description
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<PhoenixFileInfo>>

A list of the files that were found. Empty if none.

View Source

FixAllowHeadlessXUserAutomationAsync(String)

Kit config method for fixing allow headless xuser automation.

Declaration
[DeviceConfigFixMethod("Allow Headless XUser Automation", "Xbox")]
public async Task<DeviceConfigResult> FixAllowHeadlessXUserAutomationAsync(string expectedResult)
Parameters
Type Name Description
System.String expectedResult

The value of allow headless xuser automation we want to set to.

Returns
Type Description
System.Threading.Tasks.Task<DeviceConfigResult>

The kit config result object.

View Source

FixCrashDumpTypeAsync(String)

Kit config method for fixing the crash dump type.

Declaration
[DeviceConfigFixMethod("Crash Dump Type", "Xbox")]
public async Task<DeviceConfigResult> FixCrashDumpTypeAsync(string expectedResult)
Parameters
Type Name Description
System.String expectedResult

The type of crash dump to we want to set to.

Returns
Type Description
System.Threading.Tasks.Task<DeviceConfigResult>

The kit config result object.

View Source

FixDebugMemoryModeAsync(String)

Kit config method for fixing the debug memory mode.

Declaration
[DeviceConfigFixMethod("Debug Memory Mode", "Xbox")]
public async Task<DeviceConfigResult> FixDebugMemoryModeAsync(string expectedResult)
Parameters
Type Name Description
System.String expectedResult

The type of debug memory mode we want to set to.

Returns
Type Description
System.Threading.Tasks.Task<DeviceConfigResult>

The kit config result object.

View Source

FixDefaultStorageDeviceAsync(String)

Kit config method for fixing the default storage device.

Declaration
[DeviceConfigFixMethod("Default Storage Device", "Xbox")]
public async Task<DeviceConfigResult> FixDefaultStorageDeviceAsync(string expectedResult)
Parameters
Type Name Description
System.String expectedResult

The type of storage device we want to set to.

Returns
Type Description
System.Threading.Tasks.Task<DeviceConfigResult>

The kit config result object.

View Source

FixExtraTitleMemoryAsync(String)

Kit config method for fixing the extra title memory.

Declaration
[DeviceConfigFixMethod("Extra Title Memory (MB)", "Xbox")]
public async Task<DeviceConfigResult> FixExtraTitleMemoryAsync(string expectedResult)
Parameters
Type Name Description
System.String expectedResult

The extra title memory we want to set to.

Returns
Type Description
System.Threading.Tasks.Task<DeviceConfigResult>

The kit config result object.

View Source

FixGuestAccessToFileSharesAsync(String)

Kit config method for fixing the guest access to file shares settings.

Declaration
[DeviceConfigFixMethod("Guest Access To File Shares", "Xbox")]
public async Task<DeviceConfigResult> FixGuestAccessToFileSharesAsync(string expectedResult)
Parameters
Type Name Description
System.String expectedResult

The guest access value to be set to.

Returns
Type Description
System.Threading.Tasks.Task<DeviceConfigResult>

The kit config result object.

View Source

FixProfilingModeAsync(String)

Kit config method for fixing the profiling mode.

Declaration
[DeviceConfigFixMethod("Profiling Mode", "Xbox")]
public async Task<DeviceConfigResult> FixProfilingModeAsync(string expectedResult)
Parameters
Type Name Description
System.String expectedResult

The type of profiling mode we want to set to.

Returns
Type Description
System.Threading.Tasks.Task<DeviceConfigResult>

The kit config result object.

View Source

FixRecoveryVersionAsync(String, String)

Installs the specific XDK recovery version on the console.

Declaration
[DeviceConfigFixMethod("Recovery Version", "Xbox")]
public async Task<DeviceConfigResult> FixRecoveryVersionAsync(string expected, string recoveryPath)
Parameters
Type Name Description
System.String expected

The version of the recovery to install on this console.

System.String recoveryPath

The path to the folder containing the recovery files.

Returns
Type Description
System.Threading.Tasks.Task<DeviceConfigResult>

The KitConfigResult which specifies if recovery was successfully installed on device.

View Source

FixSandboxIdAsync(String)

Kit config method for fixing the Sandbox ID.

Declaration
[DeviceConfigFixMethod("Sandbox ID", "Xbox")]
public async Task<DeviceConfigResult> FixSandboxIdAsync(string expectedResult)
Parameters
Type Name Description
System.String expectedResult

The version of the XDK we want to flash to.

Returns
Type Description
System.Threading.Tasks.Task<DeviceConfigResult>

The kit config result object.

View Source

FixToolingMemoryOverflowAsync(String)

Kit config method for fixing tooling memory overflow.

Declaration
[DeviceConfigFixMethod("Tooling Memory Overflow", "Xbox")]
public async Task<DeviceConfigResult> FixToolingMemoryOverflowAsync(string expectedResult)
Parameters
Type Name Description
System.String expectedResult

The value of tooling memory overflow we want to set to.

Returns
Type Description
System.Threading.Tasks.Task<DeviceConfigResult>

The kit config result object.

View Source

GetAllPackages()

Declaration
public Task<IList<IPackage>> GetAllPackages()
Returns
Type Description
System.Threading.Tasks.Task<System.Collections.Generic.IList<IPackage>>
View Source

GetApplicationDirectoriesAsync()

Gets the directories containing a manifest file from the scratch drive.

Declaration
public async Task<IEnumerable<PhoenixDirectoryInfo>> GetApplicationDirectoriesAsync()
Returns
Type Description
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<PhoenixDirectoryInfo>>

A list of the directories that were found. Empty if none.

View Source

GetAppPackageDirectoriesAsync(PhoenixPath)

Gets the app package directories.

Declaration
public Task<IEnumerable<PhoenixDirectoryInfo>> GetAppPackageDirectoriesAsync(PhoenixPath path)
Parameters
Type Name Description
PhoenixPath path

The path the directories are located at.

Returns
Type Description
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<PhoenixDirectoryInfo>>

An IEnumerable of Directories.

View Source

GetAppPackageFilesAsync(PhoenixPath)

Gets the app package files.

Declaration
public Task<IEnumerable<PhoenixFileInfo>> GetAppPackageFilesAsync(PhoenixPath path)
Parameters
Type Name Description
PhoenixPath path

The path the files are located at.

Returns
Type Description
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<PhoenixFileInfo>>

An IEnumerable of files.

View Source

GetAppPackageMetadataAsync(PhoenixPath)

Gets the packages metadata from a path.

Declaration
public async Task<Dictionary<string, string>> GetAppPackageMetadataAsync(PhoenixPath path)
Parameters
Type Name Description
PhoenixPath path

The path to the app package.

Returns
Type Description
System.Threading.Tasks.Task<System.Collections.Generic.Dictionary<System.String, System.String>>

Metadata in the form of a string

View Source

GetAppPackagesAsync()

Gets the App Packages.

Declaration
public async Task<IEnumerable<PhoenixDirectoryInfo>> GetAppPackagesAsync()
Returns
Type Description
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<PhoenixDirectoryInfo>>

A list of App Packages.

View Source

GetButtonsState(Guid)

Gets the button state for the specified gamepad.

Declaration
public GamepadButtons? GetButtonsState(Guid gamepadId)
Parameters
Type Name Description
System.Guid gamepadId

The gamepad to query buttons from.

Returns
Type Description
System.Nullable<GamepadButtons>

The button states (null if the gamepad cannot be found)

View Source

GetDirectAppPackagePath(PhoenixPath)

Gets the direct path on the local file system or UNC path.

Declaration
public PhoenixPath GetDirectAppPackagePath(PhoenixPath path)
Parameters
Type Name Description
PhoenixPath path

The path to translate

Returns
Type Description
PhoenixPath

The local file system or UNC path of path; null if not supported

View Source

GetDirectSystemPath(PhoenixPath)

Gets the direct path on the local file system or UNC path.

Declaration
public PhoenixPath GetDirectSystemPath(PhoenixPath path)
Parameters
Type Name Description
PhoenixPath path

The path to translate

Returns
Type Description
PhoenixPath

The local file system or UNC path of path; null if not supported

View Source

GetDirectTitlePath(PhoenixPath)

Gets the direct path on the local file system or UNC path.

Declaration
public PhoenixPath GetDirectTitlePath(PhoenixPath path)
Parameters
Type Name Description
PhoenixPath path

The path to translate

Returns
Type Description
PhoenixPath

The local file system or UNC path of path; null if not supported

Remarks

None of the title paths are supported while the title is running.

View Source

GetIsDeviceAvailable()

Checks this device to see if it is connected and usable.

Declaration
public bool GetIsDeviceAvailable()
Returns
Type Description
System.Boolean

Whether or not this device is connected and usable.

View Source

GetIsRunningAsync(IPackage)

Declaration
public Task<bool> GetIsRunningAsync(IPackage package)
Parameters
Type Name Description
IPackage package
Returns
Type Description
System.Threading.Tasks.Task<System.Boolean>
View Source

GetJoystickPosition(Guid, JoystickType)

Gets the joystick position for the specified gamepad.

Declaration
public JoystickPosition GetJoystickPosition(Guid gamepadId, JoystickType joystick)
Parameters
Type Name Description
System.Guid gamepadId

The gamepad to get the joystick position from.

JoystickType joystick

The joystick type to query.

Returns
Type Description
JoystickPosition

The joystick position for the specified gamepad and joystick type. (null if not found)

View Source

GetPackages(PackageFilter)

Declaration
public async Task<IList<IPackage>> GetPackages(PackageFilter filter)
Parameters
Type Name Description
PackageFilter filter
Returns
Type Description
System.Threading.Tasks.Task<System.Collections.Generic.IList<IPackage>>
View Source

GetRunningPackages()

Declaration
public Task<IList<IPackage>> GetRunningPackages()
Returns
Type Description
System.Threading.Tasks.Task<System.Collections.Generic.IList<IPackage>>
View Source

GetScratchDriveAsync()

Gets the scratch drive.

Declaration
public async Task<PhoenixDirectoryInfo> GetScratchDriveAsync()
Returns
Type Description
System.Threading.Tasks.Task<PhoenixDirectoryInfo>

PhoenixDirectoryInfo for the scratch drive.

View Source

GetService(Type)

Gets a service from a specific service provider.

Declaration
public override object GetService(Type serviceType)
Parameters
Type Name Description
System.Type serviceType

The type of service to get.

Returns
Type Description
System.Object

The requested service.

Overrides
CapabilityBase.GetService(Type)
View Source

GetSystemDirectoriesAsync(PhoenixPath)

Gets the system directories.

Declaration
public Task<IEnumerable<PhoenixDirectoryInfo>> GetSystemDirectoriesAsync(PhoenixPath path)
Parameters
Type Name Description
PhoenixPath path

The path the directories are located at.

Returns
Type Description
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<PhoenixDirectoryInfo>>

An IEnumerable of Directories.

View Source

GetSystemDrivesAsync()

Returns the System drives.

Declaration
public Task<IEnumerable<PhoenixDirectoryInfo>> GetSystemDrivesAsync()
Returns
Type Description
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<PhoenixDirectoryInfo>>

Empty list if drives cannot be found.

View Source

GetSystemFilesAsync(PhoenixPath)

Gets the system files.

Declaration
public Task<IEnumerable<PhoenixFileInfo>> GetSystemFilesAsync(PhoenixPath path)
Parameters
Type Name Description
PhoenixPath path

The path the files are located at.

Returns
Type Description
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<PhoenixFileInfo>>

An IEnumerable of files.

View Source

GetTitleDirectoriesAsync(PhoenixPath)

Gets the Title directories.

Declaration
public Task<IEnumerable<PhoenixDirectoryInfo>> GetTitleDirectoriesAsync(PhoenixPath path)
Parameters
Type Name Description
PhoenixPath path

The path the directories are located at.

Returns
Type Description
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<PhoenixDirectoryInfo>>

An IEnumerable of Directories.

View Source

GetTitleDrivesAsync()

Gets the drives from a running an ERA Title.

Declaration
public Task<IEnumerable<PhoenixDirectoryInfo>> GetTitleDrivesAsync()
Returns
Type Description
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<PhoenixDirectoryInfo>>

IEnumerable of the drives represented by PhoenixDirectoryInfo. Empty list if none can be found.

View Source

GetTitleFilesAsync(PhoenixPath)

Gets the Title files.

Declaration
public Task<IEnumerable<PhoenixFileInfo>> GetTitleFilesAsync(PhoenixPath path)
Parameters
Type Name Description
PhoenixPath path

The path the files are located at.

Returns
Type Description
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<PhoenixFileInfo>>

An IEnumerable of files.

View Source

GetTitleScratchDrive()

Gets the scratch drive of the Xbox Title system.

Declaration
public PhoenixDirectoryInfo GetTitleScratchDrive()
Returns
Type Description
PhoenixDirectoryInfo

A PhoenixDirectoryInfo representing the drive.

View Source

GetTriggerPosition(Guid, TriggerType)

Gets the trigger position for the specified gamepad.

Declaration
public float? GetTriggerPosition(Guid gamepadId, TriggerType trigger)
Parameters
Type Name Description
System.Guid gamepadId

The gamepad to get the trigger position from.

TriggerType trigger

The trigger type to query.

Returns
Type Description
System.Nullable<System.Single>

The trigger position for the specified gamepad and trigger type (null if gamepad not found)

View Source

HoldButtons(Guid, GamepadButtons)

Holds the specified buttons.

Declaration
public void HoldButtons(Guid gamepadId, GamepadButtons buttons)
Parameters
Type Name Description
System.Guid gamepadId

The gamepad to send the button hold to.

GamepadButtons buttons

The buttons to hold.

View Source

IsSystem(WinPackageInfo)

Gets whether or not the package is a system package.

Declaration
public static bool IsSystem(WinPackageInfo package)
Parameters
Type Name Description
WinPackageInfo package

The xbox package to check.

Returns
Type Description
System.Boolean

Whether or not the passed in package is a system package.

View Source

Launch(IApplication)

Declaration
public Task Launch(IApplication application)
Parameters
Type Name Description
IApplication application
Returns
Type Description
System.Threading.Tasks.Task
View Source

Launch(IApplication, String)

Declaration
public Task Launch(IApplication application, string commandLine)
Parameters
Type Name Description
IApplication application
System.String commandLine
Returns
Type Description
System.Threading.Tasks.Task
View Source

Launch(String)

Declaration
public Task Launch(string aumid)
Parameters
Type Name Description
System.String aumid
Returns
Type Description
System.Threading.Tasks.Task
View Source

Launch(String, String)

Declaration
public Task Launch(string aumid, string commandLine)
Parameters
Type Name Description
System.String aumid
System.String commandLine
Returns
Type Description
System.Threading.Tasks.Task
View Source

OnDeviceAliasChanged(String, String)

Declaration
protected override void OnDeviceAliasChanged(string oldValue, string value)
Parameters
Type Name Description
System.String oldValue
System.String value
Overrides
DeviceBase.OnDeviceAliasChanged(String, String)
View Source

OpenFileSystemItemAsync(PhoenixPath)

Opens a FileSystemItem

Declaration
public async Task OpenFileSystemItemAsync(PhoenixPath path)
Parameters
Type Name Description
PhoenixPath path

The file path to open.

Returns
Type Description
System.Threading.Tasks.Task

The task performing the request.

View Source

PushLoosePackageAsync(String, IProgress<DeploymentProgressInfo>, Boolean, CancellationToken)

Installs a loose files application on the device.

Declaration
public async Task<bool> PushLoosePackageAsync(string looseDirectory, IProgress<DeploymentProgressInfo> progress, bool removeExtraFiles, CancellationToken cancelToken)
Parameters
Type Name Description
System.String looseDirectory

The directory the manifest file is in.

System.IProgress<DeploymentProgressInfo> progress

The IProgress object to report progress to.

System.Boolean removeExtraFiles

Whether or not the deployment will remove extra files.

System.Threading.CancellationToken cancelToken

The cancellation token.

Returns
Type Description
System.Threading.Tasks.Task<System.Boolean>

True upon success

View Source

Reboot()

Reboots the device.

Declaration
public void Reboot()
View Source

RebootAsync()

Asynchronously reboots this device.

Declaration
public async Task RebootAsync()
Returns
Type Description
System.Threading.Tasks.Task

A task that represents the reboot operation.

View Source

RebootAsync(CancellationToken)

Asynchronously reboots this device.

Declaration
public async Task RebootAsync(CancellationToken token)
Parameters
Type Name Description
System.Threading.CancellationToken token

A cancellation token that should be used to cancel the work.

Returns
Type Description
System.Threading.Tasks.Task

A task that represents the reboot operation.

View Source

ReleaseButtons(Guid, GamepadButtons)

Releases the specified buttons.

Declaration
public void ReleaseButtons(Guid gamepadId, GamepadButtons buttons)
Parameters
Type Name Description
System.Guid gamepadId

The gamepad to send the button release to.

GamepadButtons buttons

The buttons to release.

View Source

Resume(IPackage)

Declaration
public Task Resume(IPackage package)
Parameters
Type Name Description
IPackage package
Returns
Type Description
System.Threading.Tasks.Task
View Source

Serialize()

Serializes device information.

Declaration
public override SerializableIDevice Serialize()
Returns
Type Description
SerializableIDevice

The SerializableIDevice.

Overrides
DeviceBase.Serialize()
View Source

SetJoystickPosition(Guid, JoystickType, JoystickPosition)

Sets the joystick position for the specified gamepad.

Declaration
public void SetJoystickPosition(Guid gamepadId, JoystickType joystick, JoystickPosition position)
Parameters
Type Name Description
System.Guid gamepadId

The gamepad to set the joystick position for.

JoystickType joystick

The joystick type.

JoystickPosition position

The joystick position.

View Source

SetTriggerPosition(Guid, TriggerType, Single)

Sets the trigger position for the specified gamepad.

Declaration
public void SetTriggerPosition(Guid gamepadId, TriggerType trigger, float position)
Parameters
Type Name Description
System.Guid gamepadId

The gamepad to set the trigger position for.

TriggerType trigger

The trigger type.

System.Single position

The trigger position.

View Source

Shutdown()

Shuts down this device.

Declaration
public void Shutdown()
View Source

ShutdownAsync()

Asynchronously shuts down this device.

Declaration
public async Task ShutdownAsync()
Returns
Type Description
System.Threading.Tasks.Task

A task that represents the shutdown operation.

View Source

ShutdownAsync(CancellationToken)

Asynchronously shuts down this device.

Declaration
public async Task ShutdownAsync(CancellationToken token)
Parameters
Type Name Description
System.Threading.CancellationToken token

A cancellation token that should be used to cancel the work.

Returns
Type Description
System.Threading.Tasks.Task

A task that represents the shutdown operation.

View Source

Snap(IApplication)

Declaration
public Task Snap(IApplication application)
Parameters
Type Name Description
IApplication application
Returns
Type Description
System.Threading.Tasks.Task
View Source

StreamPackageAsync(String, IProgress<DeploymentProgressInfo>, Boolean, CancellationToken)

Installs an application package on the device.

Declaration
public async Task<bool> StreamPackageAsync(string packageFile, IProgress<DeploymentProgressInfo> progress, bool onlyLaunchChunk, CancellationToken cancelToken)
Parameters
Type Name Description
System.String packageFile

The package to install on the device.

System.IProgress<DeploymentProgressInfo> progress

The IProgress object to report progress to.

System.Boolean onlyLaunchChunk

Whether or not to only deploy the launch chunk.

System.Threading.CancellationToken cancelToken

The cancellation token.

Returns
Type Description
System.Threading.Tasks.Task<System.Boolean>

True upon success

View Source

Suspend(IPackage)

Declaration
public Task Suspend(IPackage package)
Parameters
Type Name Description
IPackage package
Returns
Type Description
System.Threading.Tasks.Task
View Source

SystemDirectoryExistsAsync(PhoenixPath)

Checks if a directory exists in a System directory.

Declaration
public Task<bool> SystemDirectoryExistsAsync(PhoenixPath path)
Parameters
Type Name Description
PhoenixPath path

The directory to check.

Returns
Type Description
System.Threading.Tasks.Task<System.Boolean>

True if the directory exists, false if not.

View Source

SystemFileExistsAsync(PhoenixPath)

Checks if a file exists in a System directory.

Declaration
public Task<bool> SystemFileExistsAsync(PhoenixPath path)
Parameters
Type Name Description
PhoenixPath path

The file to check.

Returns
Type Description
System.Threading.Tasks.Task<System.Boolean>

True if the file exists, false if not.

View Source

Terminate(IPackage)

Declaration
public Task Terminate(IPackage package)
Parameters
Type Name Description
IPackage package
Returns
Type Description
System.Threading.Tasks.Task
View Source

TitleDirectoryExistsAsync(PhoenixPath)

Checks if a directory exists in a Title directory.

Declaration
public Task<bool> TitleDirectoryExistsAsync(PhoenixPath path)
Parameters
Type Name Description
PhoenixPath path

The directory to check.

Returns
Type Description
System.Threading.Tasks.Task<System.Boolean>

True if the directory exists, false if not.

View Source

TitleFileExistsAsync(PhoenixPath)

Checks if a file exists in a Title directory.

Declaration
public Task<bool> TitleFileExistsAsync(PhoenixPath path)
Parameters
Type Name Description
PhoenixPath path

The file to check.

Returns
Type Description
System.Threading.Tasks.Task<System.Boolean>

True if the file exists, false if not.

View Source

TryPairWithUser(Guid, PhoenixUser, Boolean)

Tries to pair a gamepad with a user.

Declaration
public async Task<bool> TryPairWithUser(Guid gamepadId, PhoenixUser user, bool exclusive)
Parameters
Type Name Description
System.Guid gamepadId

The gamepad to pair the user to.

PhoenixUser user

The user to pair with the gamepad.

System.Boolean exclusive

Whether or not the gamepad should be paired exclusively with the user or not.

Returns
Type Description
System.Threading.Tasks.Task<System.Boolean>

Whether or not the pairing was successful.

View Source

Unconstrain(IPackage)

Declaration
public Task Unconstrain(IPackage package)
Parameters
Type Name Description
IPackage package
Returns
Type Description
System.Threading.Tasks.Task
View Source

Uninstall(IPackage)

Declaration
public Task Uninstall(IPackage package)
Parameters
Type Name Description
IPackage package
Returns
Type Description
System.Threading.Tasks.Task
View Source

Unsnap(IPackage)

Declaration
public Task Unsnap(IPackage package)
Parameters
Type Name Description
IPackage package
Returns
Type Description
System.Threading.Tasks.Task
View Source

UpdateAsync(XdkReference, Boolean, Boolean, Boolean)

Updates the xbox kit to a new XDK version and/or provisions the OS.

Declaration
public async Task<bool> UpdateAsync(XdkReference xdk, bool updateRecovery, bool provisionGameOS, bool factoryReset)
Parameters
Type Name Description
XdkReference xdk

The XDK reference paths wrapper.

System.Boolean updateRecovery

Whether or not to update the recovery

System.Boolean provisionGameOS

Whether or not to provision the GameOS (and Tool OS if it exists)

System.Boolean factoryReset

Whether or not to factory reset when updating the recovery (default false)

Returns
Type Description
System.Threading.Tasks.Task<System.Boolean>

whether or not the update was successful.

Explicit Interface Implementations

View Source

IDeviceStatus.GetAsync()

Declaration
async Task<DeviceConnectionStatus> IDeviceStatus.GetAsync()
Returns
Type Description
System.Threading.Tasks.Task<DeviceConnectionStatus>
View Source

IDeviceStatus.Set(DeviceConnectionStatus)

Sets the DeviceConnectionStatus for a device.

Declaration
void IDeviceStatus.Set(DeviceConnectionStatus status)
Parameters
Type Name Description
DeviceConnectionStatus status

The status to set.

Implements

System.IServiceProvider
IDevice
ICapability
IDeviceControllable
IDeviceInput
IFileSystemIOAppPackage
IFileSystemIOSystem
IFileSystemIOTitle
System.IDisposable
IDevicePackages
IDeviceStatus

Extension Methods

XboxXbConnectExtensions.GetXdkVersionAsync(Xbox)
XboxXbConnectExtensions.GetRecoveryVersionAsync(Xbox)
  • View Source
In This Article
Back to top Generated by DocFX