Share via


LogConsistencyProviderAttribute 類別

定義

[一致性提供者.LogConsistencyProvider] 屬性是用來定義使用記錄檢視狀態抽象概念用於粒紋的一致性提供者。

針對衍生自 LogConsistentGrain 的所有粒紋,例如 JournaledGrain,建議指定 [一般.Providers.LogConsistencyProvider] 屬性。 如果未指定任何 [一個[一般提供者.LogConsistencyProvider] 屬性,則執行時間會嘗試尋找一個 ,如下所示。 首先,它會在組態檔中尋找「預設」提供者,然後檢查粒紋類型是否定義預設值。 如果無法找到此粒紋的一致性提供者,則粒紋將無法載入至定址接收器。

[System.AttributeUsage(System.AttributeTargets.Class)]
public sealed class LogConsistencyProviderAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class)>]
type LogConsistencyProviderAttribute = class
    inherit Attribute
Public NotInheritable Class LogConsistencyProviderAttribute
Inherits Attribute
繼承
LogConsistencyProviderAttribute
屬性

建構函式

LogConsistencyProviderAttribute()

初始化 LogConsistencyProviderAttribute 類別的新執行個體。

屬性

ProviderName

取得或設定要用於一致性的提供者名稱。

適用於