Share via


ChangeFeedProcessorBuilder.WithLeaseDocumentClient Method

Definition

Overloads

WithLeaseDocumentClient(IChangeFeedDocumentClient)

Sets an existing IChangeFeedDocumentClient to be used to read from the leases collection.

WithLeaseDocumentClient(DocumentClient)

Sets an existing DocumentClient to be used to read from the leases collection.

WithLeaseDocumentClient(IChangeFeedDocumentClient)

Sets an existing IChangeFeedDocumentClient to be used to read from the leases collection.

public Microsoft.Azure.Documents.ChangeFeedProcessor.ChangeFeedProcessorBuilder WithLeaseDocumentClient (Microsoft.Azure.Documents.ChangeFeedProcessor.DataAccess.IChangeFeedDocumentClient leaseDocumentClient);
member this.WithLeaseDocumentClient : Microsoft.Azure.Documents.ChangeFeedProcessor.DataAccess.IChangeFeedDocumentClient -> Microsoft.Azure.Documents.ChangeFeedProcessor.ChangeFeedProcessorBuilder
Public Function WithLeaseDocumentClient (leaseDocumentClient As IChangeFeedDocumentClient) As ChangeFeedProcessorBuilder

Parameters

leaseDocumentClient
IChangeFeedDocumentClient

The instance of IChangeFeedDocumentClient to use.

Returns

The instance of ChangeFeedProcessorBuilder to use.

Applies to

WithLeaseDocumentClient(DocumentClient)

Sets an existing DocumentClient to be used to read from the leases collection.

public Microsoft.Azure.Documents.ChangeFeedProcessor.ChangeFeedProcessorBuilder WithLeaseDocumentClient (Microsoft.Azure.Documents.Client.DocumentClient leaseDocumentClient);
member this.WithLeaseDocumentClient : Microsoft.Azure.Documents.Client.DocumentClient -> Microsoft.Azure.Documents.ChangeFeedProcessor.ChangeFeedProcessorBuilder
Public Function WithLeaseDocumentClient (leaseDocumentClient As DocumentClient) As ChangeFeedProcessorBuilder

Parameters

leaseDocumentClient
DocumentClient

The instance of DocumentClient to use.

Returns

The instance of ChangeFeedProcessorBuilder to use.

Applies to