ILeaseManager.ReleaseLeaseAsync(Lease) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Give up a lease currently held by this host.
If the lease has been stolen, or expired, releasing it is unnecessary, and will fail if attempted.
public System.Threading.Tasks.Task<bool> ReleaseLeaseAsync (Microsoft.Azure.EventHubs.Processor.Lease lease);
abstract member ReleaseLeaseAsync : Microsoft.Azure.EventHubs.Processor.Lease -> System.Threading.Tasks.Task<bool>
Public Function ReleaseLeaseAsync (lease As Lease) As Task(Of Boolean)
Parameters
- lease
- Lease
Lease to be given up
Returns
true if the lease was released successfully, false if not
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET