Show / Hide Table of Contents

Class LaunchGame

An operation that launches an application on a device.

Inheritance
object
CancellableOperationBase<IDevice>
DeviceOperationBase
LaunchGame
Implements
IDeviceOperation
ICancellableOperation<IDevice>
IOperation<IDevice>
ICancellableOperation
IOperation
IEquatable<IDeviceOperation>
Inherited Members
DeviceOperationBase.Equals(IDeviceOperation)
DeviceOperationBase.Equals(object)
DeviceOperationBase.GetHashCode()
CancellableOperationBase<IDevice>.ExecutionStateChanged
CancellableOperationBase<IDevice>.IsRunning
CancellableOperationBase<IDevice>.Timeout
CancellableOperationBase<IDevice>.GetAwaiter(IDevice, CancellationToken)
CancellableOperationBase<IDevice>.Run(IDevice)
CancellableOperationBase<IDevice>.Run(IDevice, CancellationToken)
CancellableOperationBase<IDevice>.IsRunningOn(IDevice)
CancellableOperationBase<IDevice>.Cancel(IDevice)
CancellableOperationBase<IDevice>.Cancel(IDevice, bool)
CancellableOperationBase<IDevice>.TryCreateCancellationToken(IDevice, out CancellationToken)
object.Equals(object, object)
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: Microsoft.XboxStudios.BotBrain.Devices
Assembly: BotBrain.Devices.dll
Syntax
public class LaunchGame : DeviceOperationBase, IDeviceOperation, ICancellableOperation<IDevice>, IOperation<IDevice>, ICancellableOperation, IOperation, IEquatable<IDeviceOperation?>

Constructors

View Source

LaunchGame()

Initializes a new instance of the LaunchGame class.

Declaration
public LaunchGame()

Properties

View Source

ApplicationName

Gets or sets the application to launch.

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

EnvironmentName

Gets or sets the environment to launch applications with.

Declaration
public string? EnvironmentName { get; set; }
Property Value
Type Description
string
View Source

LaunchArguments

Gets or sets the launch configuration.

Declaration
public string LaunchArguments { get; set; }
Property Value
Type Description
string

Methods

View Source

ExecuteOn(IDevice, CancellationToken)

Runs the operation on an item.

Declaration
protected override Task<bool> ExecuteOn(IDevice item, CancellationToken token)
Parameters
Type Name Description
IDevice item

The item.

CancellationToken token

A token to monitor for cancellation.

Returns
Type Description
Task<bool>

A task that returns a boolean indicating success or failure when the operation completes.

Overrides
CancellableOperationBase<IDevice>.ExecuteOn(IDevice, CancellationToken)
View Source

ToString()

Returns a string that represents the current object.

Declaration
public override string ToString()
Returns
Type Description
string

A string that represents the current object.

Overrides
object.ToString()

Implements

IDeviceOperation
ICancellableOperation<T>
IOperation<T>
ICancellableOperation
IOperation
IEquatable<T>
  • View Source
In this article
Back to top Generated by DocFX