Delen via


DbContext.IDbContextPoolable.SetLeaseAsync Method

Definition

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

[Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal]
System.Threading.Tasks.Task IDbContextPoolable.SetLeaseAsync (Microsoft.EntityFrameworkCore.Internal.DbContextLease lease, System.Threading.CancellationToken cancellationToken);
[<Microsoft.EntityFrameworkCore.Infrastructure.EntityFrameworkInternal>]
abstract member Microsoft.EntityFrameworkCore.Internal.IDbContextPoolable.SetLeaseAsync : Microsoft.EntityFrameworkCore.Internal.DbContextLease * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.Microsoft.EntityFrameworkCore.Internal.IDbContextPoolable.SetLeaseAsync : Microsoft.EntityFrameworkCore.Internal.DbContextLease * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Function SetLeaseAsync (lease As DbContextLease, cancellationToken As CancellationToken) As Task Implements IDbContextPoolable.SetLeaseAsync

Parameters

lease
Microsoft.EntityFrameworkCore.Internal.DbContextLease
cancellationToken
CancellationToken

Returns

Implements

Microsoft.EntityFrameworkCore.Internal.IDbContextPoolable.SetLeaseAsync(Microsoft.EntityFrameworkCore.Internal.DbContextLease,System.Threading.CancellationToken)
Attributes

Applies to