Επεξεργασία

Κοινή χρήση μέσω


AnnouncementClient.AnnounceOnlineAsync Method

Definition

Causes an online announcement message (Hello) to be sent asynchronously.

Overloads

AnnounceOnlineAsync(EndpointDiscoveryMetadata, Object)

Causes an online announcement (Hello) message to be sent asynchronously with the specified endpoint discovery metadata and user-defined state.

AnnounceOnlineAsync(EndpointDiscoveryMetadata)

Causes an online announcement (Hello) message to be sent asynchronously with the specified endpoint discovery metadata.

AnnounceOnlineAsync(EndpointDiscoveryMetadata, Object)

Causes an online announcement (Hello) message to be sent asynchronously with the specified endpoint discovery metadata and user-defined state.

public:
 void AnnounceOnlineAsync(System::ServiceModel::Discovery::EndpointDiscoveryMetadata ^ discoveryMetadata, System::Object ^ userState);
public void AnnounceOnlineAsync (System.ServiceModel.Discovery.EndpointDiscoveryMetadata discoveryMetadata, object userState);
member this.AnnounceOnlineAsync : System.ServiceModel.Discovery.EndpointDiscoveryMetadata * obj -> unit
Public Sub AnnounceOnlineAsync (discoveryMetadata As EndpointDiscoveryMetadata, userState As Object)

Parameters

discoveryMetadata
EndpointDiscoveryMetadata

The endpoint discovery metadata.

userState
Object

The user-defined state data.

Applies to

AnnounceOnlineAsync(EndpointDiscoveryMetadata)

Causes an online announcement (Hello) message to be sent asynchronously with the specified endpoint discovery metadata.

public:
 void AnnounceOnlineAsync(System::ServiceModel::Discovery::EndpointDiscoveryMetadata ^ discoveryMetadata);
public void AnnounceOnlineAsync (System.ServiceModel.Discovery.EndpointDiscoveryMetadata discoveryMetadata);
member this.AnnounceOnlineAsync : System.ServiceModel.Discovery.EndpointDiscoveryMetadata -> unit
Public Sub AnnounceOnlineAsync (discoveryMetadata As EndpointDiscoveryMetadata)

Parameters

discoveryMetadata
EndpointDiscoveryMetadata

The endpoint discovery metadata.

Remarks

This method stores in the task it returns all non-usage exceptions that the method's synchronous counterpart can throw. If an exception is stored into the returned task, that exception will be thrown when the task is awaited. Usage exceptions, such as ArgumentException, are still thrown synchronously. For the stored exceptions, see the exceptions thrown by AnnounceOnline(EndpointDiscoveryMetadata).

Applies to