ServiceManager.Subscribe ServiceManager.Subscribe ServiceManager.Subscribe ServiceManager.Subscribe Method

Definition

Overloads

Subscribe(Type, SubscribeServiceCallback) Subscribe(Type, SubscribeServiceCallback) Subscribe(Type, SubscribeServiceCallback) 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>) Subscribe<TServiceType>(SubscribeServiceCallback<TServiceType>) Subscribe<TServiceType>(SubscribeServiceCallback<TServiceType>) 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) Subscribe(Type, SubscribeServiceCallback) Subscribe(Type, SubscribeServiceCallback) 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 Type Type Type

The type of service to subscribe to.

callback
SubscribeServiceCallback SubscribeServiceCallback SubscribeServiceCallback SubscribeServiceCallback

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

Exceptions

Subscribe<TServiceType>(SubscribeServiceCallback<TServiceType>) Subscribe<TServiceType>(SubscribeServiceCallback<TServiceType>) Subscribe<TServiceType>(SubscribeServiceCallback<TServiceType>) 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

Exceptions

Applies to