ServiceManager.Subscribe Método

Definição

Sobrecargas

Subscribe(Type, SubscribeServiceCallback)

Invoca o retorno de chamada fornecido quando alguém publica o serviço solicitado.Invokes the provided callback when someone has published the requested service. Se o serviço já estiver disponível, este método invocará o retorno de chamada imediatamente.If the service was already available, this method invokes the callback immediately.

Subscribe<TServiceType>(SubscribeServiceCallback<TServiceType>)

Invoca o retorno de chamada fornecido quando alguém publica o serviço solicitado.Invokes the provided callback when someone has published the requested service. Se o serviço já estiver disponível, este método invocará o retorno de chamada imediatamente.If the service was already available, this method invokes the callback immediately.

Subscribe(Type, SubscribeServiceCallback)

Invoca o retorno de chamada fornecido quando alguém publica o serviço solicitado.Invokes the provided callback when someone has published the requested service. Se o serviço já estiver disponível, este método invocará o retorno de chamada imediatamente.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)

Parâmetros

serviceType
Type

O tipo de serviço a ser assinado.The type of service to subscribe to.

callback
SubscribeServiceCallback

Um retorno de chamada que será notificado quando o serviço estiver disponível.A callback that will be notified when the service is available.

Exceções

serviceType ou callback é null.serviceType or callback is null.

Aplica-se a

Subscribe<TServiceType>(SubscribeServiceCallback<TServiceType>)

Invoca o retorno de chamada fornecido quando alguém publica o serviço solicitado.Invokes the provided callback when someone has published the requested service. Se o serviço já estiver disponível, este método invocará o retorno de chamada imediatamente.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))

Parâmetros de tipo

TServiceType

O tipo de serviço a ser assinado.The type of the service to subscribe to.

Parâmetros

callback
SubscribeServiceCallback<TServiceType>

Um retorno de chamada que será notificado quando o serviço estiver disponível.A callback that will be notified when the service is available.

Exceções

callback é null.callback is null.

Aplica-se a