Click or drag to resize
StorageConnectionExtensionsAcquireDistributedJobLock Method

[Missing <summary> documentation for "M:Hangfire.Storage.StorageConnectionExtensions.AcquireDistributedJobLock(Hangfire.Storage.IStorageConnection,System.String,System.TimeSpan)"]

Namespace: Hangfire.Storage
Assembly: Hangfire.Core (in Hangfire.Core.dll) Version: 1.5.0.0
Syntax
public static IDisposable AcquireDistributedJobLock(
	[NotNullAttribute] this IStorageConnection connection,
	[NotNullAttribute] string jobId,
	TimeSpan timeout
)

Parameters

connection
Type: Hangfire.StorageIStorageConnection

[Missing <param name="connection"/> documentation for "M:Hangfire.Storage.StorageConnectionExtensions.AcquireDistributedJobLock(Hangfire.Storage.IStorageConnection,System.String,System.TimeSpan)"]

jobId
Type: SystemString

[Missing <param name="jobId"/> documentation for "M:Hangfire.Storage.StorageConnectionExtensions.AcquireDistributedJobLock(Hangfire.Storage.IStorageConnection,System.String,System.TimeSpan)"]

timeout
Type: SystemTimeSpan

[Missing <param name="timeout"/> documentation for "M:Hangfire.Storage.StorageConnectionExtensions.AcquireDistributedJobLock(Hangfire.Storage.IStorageConnection,System.String,System.TimeSpan)"]

Return Value

Type: IDisposable

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IStorageConnection. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also