Show / Hide Table of Contents

Interface IConnectable

Represents a connection.

Inherited Members
IHasConnectionStatus.ConnectionStatus
Namespace: Microsoft.XboxStudios.DeviceConsole.Connections
Assembly: DeviceConsole.Abstractions.dll
Syntax
public interface IConnectable : IHasConnectionStatus

Properties

View Source

ConnectionName

Gets the connection name.

Declaration
string ConnectionName { get; }
Property Value
Type Description
string

Methods

View Source

ConnectAsync(TimeSpan?)

Attempts to connect, if not already connected.

Declaration
Task ConnectAsync(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

ConnectAsync(CancellationToken)

Attempts to connect, if not already connected.

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

The cancellation token for the operation.

Returns
Type Description
Task

A task for the asynchronous operation.

View Source

DisconnectAsync(TimeSpan?)

Attempts to disconnect.

Declaration
Task DisconnectAsync(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

DisconnectAsync(CancellationToken)

Attempts to disconnect.

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

The cancellation token for the operation.

Returns
Type Description
Task

A task for the asynchronous operation.

Events

View Source

ConnectionStatusChanged

Occurs when the connection status changes.

Declaration
event EventHandler ConnectionStatusChanged
Event Type
Type Description
EventHandler

Extension Methods

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