| AppBuilderExtensionsUseHangfireServer Method (IAppBuilder, BackgroundJobServerOptions, IBackgroundProcess) |
Creates a new instance of the
BackgroundJobServer class
with the specified options, given collection of background processes
and
Current storage, and registers its
disposal on application shutdown.
Namespace: HangfireAssembly: Hangfire.Core (in Hangfire.Core.dll) Version: 1.5.0.0
Syntax public static IAppBuilder UseHangfireServer(
[NotNullAttribute] this IAppBuilder builder,
[NotNullAttribute] BackgroundJobServerOptions options,
[NotNullAttribute] params IBackgroundProcess[] additionalProcesses
)
<ExtensionAttribute>
Public Shared Function UseHangfireServer (
<NotNullAttribute> builder As IAppBuilder,
<NotNullAttribute> options As BackgroundJobServerOptions,
<NotNullAttribute> ParamArray additionalProcesses As IBackgroundProcess()
) As IAppBuilder
Parameters
- builder
- Type: IAppBuilder
OWIN application builder. - options
- Type: HangfireBackgroundJobServerOptions
Options for background job server. - additionalProcesses
- Type: Hangfire.ServerIBackgroundProcess
Collection of additional background processes.
Return Value
Type:
IAppBuilderUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IAppBuilder. 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).
Exceptions Remarks See Also