Share via


GlobalBrokeredServiceContainer.OnRequestHandled Method

Definition

When overridden by a derived class, provides a hook to raise events, post telemetry, or log how each brokered service request was handled.

protected virtual void OnRequestHandled (Microsoft.ServiceHub.Framework.ServiceMoniker moniker, Microsoft.ServiceHub.Framework.ServiceRpcDescriptor? descriptor, Microsoft.VisualStudio.Utilities.ServiceBroker.GlobalBrokeredServiceContainer.RequestType type, Microsoft.VisualStudio.Utilities.ServiceBroker.GlobalBrokeredServiceContainer.RequestResult result, Microsoft.VisualStudio.Utilities.ServiceBroker.GlobalBrokeredServiceContainer.IProffered? proffered);
abstract member OnRequestHandled : Microsoft.ServiceHub.Framework.ServiceMoniker * Microsoft.ServiceHub.Framework.ServiceRpcDescriptor * Microsoft.VisualStudio.Utilities.ServiceBroker.GlobalBrokeredServiceContainer.RequestType * Microsoft.VisualStudio.Utilities.ServiceBroker.GlobalBrokeredServiceContainer.RequestResult * Microsoft.VisualStudio.Utilities.ServiceBroker.GlobalBrokeredServiceContainer.IProffered -> unit
override this.OnRequestHandled : Microsoft.ServiceHub.Framework.ServiceMoniker * Microsoft.ServiceHub.Framework.ServiceRpcDescriptor * Microsoft.VisualStudio.Utilities.ServiceBroker.GlobalBrokeredServiceContainer.RequestType * Microsoft.VisualStudio.Utilities.ServiceBroker.GlobalBrokeredServiceContainer.RequestResult * Microsoft.VisualStudio.Utilities.ServiceBroker.GlobalBrokeredServiceContainer.IProffered -> unit
Protected Overridable Sub OnRequestHandled (moniker As ServiceMoniker, descriptor As ServiceRpcDescriptor, type As GlobalBrokeredServiceContainer.RequestType, result As GlobalBrokeredServiceContainer.RequestResult, proffered As GlobalBrokeredServiceContainer.IProffered)

Parameters

moniker
ServiceMoniker

The moniker for the requested service.

descriptor
ServiceRpcDescriptor

The descriptor associated with the request, if available.

type
GlobalBrokeredServiceContainer.RequestType

The nature of the brokered service request.

result
GlobalBrokeredServiceContainer.RequestResult

An indicator as to how the brokered service request was handled.

proffered
GlobalBrokeredServiceContainer.IProffered

The proffering source that was used when activating the service.

Applies to