次の方法で共有


ServiceBrokerClient.Rental<T> Struct

Definition

Provides access to a client proxy as a rental that should be disposed of to signify no active use, allowing it to be disposed of when invalidated.

public: generic <typename T>
 where T : classvalue class ServiceBrokerClient::Rental : IDisposable
public struct ServiceBrokerClient.Rental<T> : IDisposable where T : class
type ServiceBrokerClient.Rental<'T (requires 'T : null)> = struct
    interface IDisposable
Public Structure ServiceBrokerClient.Rental(Of T)
Implements IDisposable

Type Parameters

T

The type of the client proxy.

Inheritance
ServiceBrokerClient.Rental<T>
Implements

Constructors

ServiceBrokerClient.Rental<T>(ServiceBrokerClient, AsyncLazy<Object>, T)

Initializes a new instance of the ServiceBrokerClient.Rental<T> struct.

Properties

IsInitialized

Gets a value indicating whether this rental has been initialized (and not yet disposed).

Proxy

Gets the client proxy.

Methods

Dispose()

Returns the rental of the client proxy, allowing it to be subject to disposal upon invalidation if all rentals have been similarly disposed.

Applies to