AllJoynBusAttachment Class

Definition

Represents a connection to the underlying communication pipeline (transport agnostic) that AllJoyn uses to communicate with other endpoints regardless of the transport.

public ref class AllJoynBusAttachment sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.Devices.AllJoyn.IAllJoynBusAttachmentFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class AllJoynBusAttachment final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Devices.AllJoyn.IAllJoynBusAttachmentFactory, 65536, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
class AllJoynBusAttachment final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Devices.AllJoyn.IAllJoynBusAttachmentFactory, 65536, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.Deprecated("AllJoynBusAttachment has been deprecated.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
class AllJoynBusAttachment final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Devices.AllJoyn.IAllJoynBusAttachmentFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class AllJoynBusAttachment
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Devices.AllJoyn.IAllJoynBusAttachmentFactory), 65536, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
public sealed class AllJoynBusAttachment
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Devices.AllJoyn.IAllJoynBusAttachmentFactory), 65536, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.Deprecated("AllJoynBusAttachment has been deprecated.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 786432, "Windows.Foundation.UniversalApiContract")]
public sealed class AllJoynBusAttachment
function AllJoynBusAttachment(connectionSpecification)
Public NotInheritable Class AllJoynBusAttachment
Inheritance
Object Platform::Object IInspectable AllJoynBusAttachment
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)
App capabilities
allJoyn

Remarks

Version history

Windows version SDK version Value added
1607 14393 AcceptSessionJoinerRequested
1607 14393 GetAboutDataAsync(AllJoynServiceInfo)
1607 14393 GetAboutDataAsync(AllJoynServiceInfo,Language)
1607 14393 GetDefault
1607 14393 GetWatcher
1607 14393 SessionJoined

Constructors

AllJoynBusAttachment()

Generates an AllJoynBusAttachment object using the default named pipe connection specification.

AllJoynBusAttachment(String)

Generates an AllJoynBusAttachment object using the provided connection specification.

Properties

AboutData

This property returns an AllJoynAboutData object containing the descriptive data that the platform may advertise on behalf of the app.

AuthenticationMechanisms

A list of AllJoynAuthenticationMechanism objects representing the acceptable authentication mechanisms. Default values include Rsa and None.

ConnectionSpecification

The connection specification used to establish and maintain the bus attachment. If a specification was not provided, this property will retrieve a default named pipe specification.

State

The current state of the bus attachment. State changes are surfaced via StateChanged events. Possible values are defined by the AllJoynBusAttachmentState enumeration.

UniqueName

The unique bus name associated with the remote app. This unique bus name is used to represent it on the bus via the bus attachment.

Methods

Connect()

Initiates the connection.

Disconnect()

Initiates a disconnect operation from the router node (bus).

GetAboutDataAsync(AllJoynServiceInfo)

Gets the About data for a specific AllJoyn endpoint. This method is intended to replace the less intuitive static AllJoynAboutDataView.GetDataBySessionPortAsync().

GetAboutDataAsync(AllJoynServiceInfo, Language)

Gets the About data for a specific AllJoyn endpoint in a specific language. This method is intended to replace the less intuitive static AllJoynAboutDataView.GetDataBySessionPortAsync().

GetDefault()

Gets the default AllJoynBusAttachment as defined by the app's manifest.

GetWatcher(IIterable<String>)

Creates a DeviceWatcher that yields AllJoyn bus objects that implement the entire set of interfaces.

PingAsync(String)

Pings the specified connection asynchronously.

Events

AcceptSessionJoinerRequested

Occurs when a remote AllJoyn endpoint requests to join the bus attachement's session.

AuthenticationComplete

Occurs when verification of supplied credentials is complete.

CredentialsRequested

Occurs when credentials are requested for authentication.

CredentialsVerificationRequested

Occurs when credentials have been provided by a remote Consumer for verification.

SessionJoined

Occurs when a remote AllJoyn endpoint joins the session of the bus attachment.

StateChanged

Occurs when the state of the bus attachment changes. The AllJoynBusAttachmentState enumeration defines the possible state values.

Applies to