113/03/12
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
# Getting Started
|
||||
|
||||
## Storage
|
||||
|
||||
Hangfire 會將所有相關資訊會被序列化後保存到儲存區,如類型、方法或參數等。
|
||||
|
||||
儲存模型官方預設有以下幾種
|
||||
@@ -46,7 +47,7 @@ Hangfire 會將所有相關資訊會被序列化後保存到儲存區,如類
|
||||
資料來源日期: 2024/03/12
|
||||
|
||||
```
|
||||
// Version 1.8
|
||||
// Hangfire 1.8
|
||||
GlobalConfiguration
|
||||
.Configuration
|
||||
.SetDataCompatibilityLevel(CompatibilityLevel.Version_180)
|
||||
@@ -54,7 +55,7 @@ GlobalConfiguration
|
||||
.UseRecommendedSerializerSettings()
|
||||
.UseSqlServerStorage("Database=Hangfire.Sample; Integrated Security=True;");
|
||||
|
||||
// Version 1.7
|
||||
// Hangfire 1.7
|
||||
GlobalConfiguration
|
||||
.Configuration
|
||||
.SetDataCompatibilityLevel(CompatibilityLevel.Version_170)
|
||||
|
||||
Reference in New Issue
Block a user