Click or drag to resize
BackgroundProcessContextExtensionsSleep Method

[Missing <summary> documentation for "M:Hangfire.Server.BackgroundProcessContextExtensions.Sleep(Hangfire.Server.BackgroundProcessContext,System.TimeSpan)"]

Namespace: Hangfire.Server
Assembly: Hangfire.Core (in Hangfire.Core.dll) Version: 1.5.0.0
Syntax
public static bool Sleep(
	[NotNullAttribute] this BackgroundProcessContext context,
	TimeSpan timeout
)

Parameters

context
Type: Hangfire.ServerBackgroundProcessContext

[Missing <param name="context"/> documentation for "M:Hangfire.Server.BackgroundProcessContextExtensions.Sleep(Hangfire.Server.BackgroundProcessContext,System.TimeSpan)"]

timeout
Type: SystemTimeSpan

[Missing <param name="timeout"/> documentation for "M:Hangfire.Server.BackgroundProcessContextExtensions.Sleep(Hangfire.Server.BackgroundProcessContext,System.TimeSpan)"]

Return Value

Type: Boolean

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type BackgroundProcessContext. 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