Upraviť

Zdieľať cez


ServiceManager.Subscribe Method

Definition

Overloads

Subscribe(Type, SubscribeServiceCallback)

Invokes the provided callback when someone has published the requested service. If the service was already available, this method invokes the callback immediately.

Subscribe<TServiceType>(SubscribeServiceCallback<TServiceType>)

Invokes the provided callback when someone has published the requested service. If the service was already available, this method invokes the callback immediately.

Subscribe(Type, SubscribeServiceCallback)

Invokes the provided callback when someone has published the requested service. If the service was already available, this method invokes the callback immediately.

public:
 abstract void Subscribe(Type ^ serviceType, System::Activities::Presentation::SubscribeServiceCallback ^ callback);
public abstract void Subscribe (Type serviceType, System.Activities.Presentation.SubscribeServiceCallback callback);
abstract member Subscribe : Type * System.Activities.Presentation.SubscribeServiceCallback -> unit
Public MustOverride Sub Subscribe (serviceType As Type, callback As SubscribeServiceCallback)

Parameters

serviceType
Type

The type of service to subscribe to.

callback
SubscribeServiceCallback

A callback that will be notified when the service is available.

Exceptions

serviceType or callback is null.

Applies to

Subscribe<TServiceType>(SubscribeServiceCallback<TServiceType>)

Invokes the provided callback when someone has published the requested service. If the service was already available, this method invokes the callback immediately.

public:
generic <typename TServiceType>
 void Subscribe(System::Activities::Presentation::SubscribeServiceCallback<TServiceType> ^ callback);
public void Subscribe<TServiceType> (System.Activities.Presentation.SubscribeServiceCallback<TServiceType> callback);
member this.Subscribe : System.Activities.Presentation.SubscribeServiceCallback<'ServiceType> -> unit
Public Sub Subscribe(Of TServiceType) (callback As SubscribeServiceCallback(Of TServiceType))

Type Parameters

TServiceType

The type of the service to subscribe to.

Parameters

callback
SubscribeServiceCallback<TServiceType>

A callback that will be notified when the service is available.

Exceptions

callback is null.

Applies to