ServiceBrokerClient.Rental<T> Constructor

Definition

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

public:
 Rental(Microsoft::ServiceHub::Framework::ServiceBrokerClient ^ client, Microsoft::VisualStudio::Threading::AsyncLazy<System::Object ^> ^ proxy, T value);
public Rental (Microsoft.ServiceHub.Framework.ServiceBrokerClient client, Microsoft.VisualStudio.Threading.AsyncLazy<object?> proxy, T? value);
new Microsoft.ServiceHub.Framework.ServiceBrokerClient.Rental<'T (requires 'T : null)> : Microsoft.ServiceHub.Framework.ServiceBrokerClient * Microsoft.VisualStudio.Threading.AsyncLazy<obj> * 'T -> Microsoft.ServiceHub.Framework.ServiceBrokerClient.Rental<'T (requires 'T : null)>
Public Sub New (client As ServiceBrokerClient, proxy As AsyncLazy(Of Object), value As T)

Parameters

client
ServiceBrokerClient

The owner.

proxy
AsyncLazy<Object>

The (already evaluated) lazy that we use to track rentals.

value
T

The client proxy itself.

Applies to