配置¶

例如, 在 ASP.NET 应用程序中,您可以将初始化逻辑放在 Global.asax.cs 文件中:

  1.  
  2. [assembly: OwinStartup(typeof(Startup))]
  3. public class Startup
  4. {
  5. {
  6. GlobalConfiguration.Configuration.UseSqlServerStorage("<name or connection string>");
  7. }
  8. }

对于其他程序, 在调用其他Hangfire方法 之前 写入配置。