예제 #1
0
 public HangfireBackgroundJobManager(
     IBackgroundJobConfiguration backgroundJobConfiguration,
     IHangfireConfiguration hangfireConfiguration)
 {
     _backgroundJobConfiguration = backgroundJobConfiguration;
     _hangfireConfiguration      = hangfireConfiguration;
 }
예제 #2
0
 public HangfireBackgroundJobManager(
     IHangfireConfiguration hangfireConfiguration,
     IBackgroundJobConfiguration backgroundJobConfiguration,
     ILogger <HangfireBackgroundJobManager> logger)
     : base(logger)
 {
     _hangfireConfiguration      = hangfireConfiguration;
     _backgroundJobConfiguration = backgroundJobConfiguration;
     _logger = logger;
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="hangfireConfiguration">Hangfire Configuration</param>
 /// <param name="oAuthTokenValidatorConfiguration">OAuthTokenValidator Configuration</param>
 /// <param name="tokenValidator">TokenValidator instance</param>
 public OwinStartup(IHangfireConfiguration hangfireConfiguration, IOAuthTokenValidatorConfiguration oAuthTokenValidatorConfiguration, ITokenValidator tokenValidator)
 {
     _hangfireConfiguration           = hangfireConfiguration;
     _authTokenValidatorConfiguration = oAuthTokenValidatorConfiguration;
     _tokenValidator = tokenValidator;
 }
예제 #4
0
 /// <summary>
 /// Apply Hangfire configuration
 /// </summary>
 /// <param name="appBuilder"></param>
 /// <param name="configuration"></param>
 public static void UseHangfire(this IAppBuilder appBuilder, IHangfireConfiguration configuration)
 {
     configuration.SetupHangfire(appBuilder);
 }