Compartilhar via


ServiceBrokerClient Class

Definition

A wrapper around IServiceBroker that caches and shares client proxies.

public ref class ServiceBrokerClient : IDisposable, Microsoft::IDisposableObservable
public class ServiceBrokerClient : IDisposable, Microsoft.IDisposableObservable
type ServiceBrokerClient = class
    interface IDisposableObservable
    interface IDisposable
Public Class ServiceBrokerClient
Implements IDisposable, IDisposableObservable
Inheritance
ServiceBrokerClient
Implements

Constructors

ServiceBrokerClient(IServiceBroker, JoinableTaskFactory)

Initializes a new instance of the ServiceBrokerClient class.

Properties

InvalidationSemaphore

Gets the semaphore that is entered to raise the Invalidated event.

IsDisposed

Gets a value indicating whether this instance has been disposed.

Methods

Dispose()

Invalidates all previously produced client proxies and disposes this object. Any client proxies currently rented will be disposed of when they are all returned.

Dispose(Boolean)

Disposes managed and unmanaged resources held by this instance.

GetProxyAsync<T>(ServiceRpcDescriptor, CancellationToken)

Requests access to some service through a client proxy. The same client proxy is returned for a given service and proxy type until it is invalidated.

GetProxyAsync<T>(ServiceRpcDescriptor, ServiceActivationOptions, CancellationToken)

Requests access to some service through a client proxy. The same client proxy is returned for a given service and proxy type until it is invalidated.

Events

Invalidated

Occurs when previously acquired proxies have gone stale.

Applies to