Show / Hide Table of Contents

Interface IPowerEnvironment

Represents the environment that a device can perform power on/off operations.

Inherited Members
IDeviceEnvironment.Name
IDeviceContainer.Device
IHasConnectionStatus.ConnectionStatus
Namespace: Microsoft.XboxStudios.DeviceConsole.Environments.Power
Assembly: DeviceConsole.Environments.dll
Syntax
public interface IPowerEnvironment : IDeviceEnvironment, IDeviceContainer, IHasConnectionStatus

Methods

View Source

RestartAsync(TimeSpan?)

Restarts the device.

Declaration
Task RestartAsync(TimeSpan? timeout = null)
Parameters
Type Name Description
TimeSpan? timeout

The timeout for the operation.

Returns
Type Description
Task

A task for the asynchronous operation.

Remarks

A device may not finish restarting by the time the task finishes.

View Source

RestartAsync(CancellationToken)

Restarts the device.

Declaration
Task RestartAsync(CancellationToken cancellationToken)
Parameters
Type Name Description
CancellationToken cancellationToken

The cancellation token for the operation.

Returns
Type Description
Task

A task for the asynchronous operation.

Remarks

A device may not finish restarting by the time the task finishes.

View Source

ShutdownAsync(TimeSpan?)

Shutdowns the device.

Declaration
Task ShutdownAsync(TimeSpan? timeout = null)
Parameters
Type Name Description
TimeSpan? timeout

The timeout for the operation.

Returns
Type Description
Task

A task for the asynchronous operation.

View Source

ShutdownAsync(CancellationToken)

Shutdowns the device.

Declaration
Task ShutdownAsync(CancellationToken cancellationToken)
Parameters
Type Name Description
CancellationToken cancellationToken

The cancellation token for the operation.

Returns
Type Description
Task

A task for the asynchronous operation.

Extension Methods

IHasConnectionStatusExtensions.IsConnected(IHasConnectionStatus)
  • View Source
In This Article
Back to top Generated by DocFX