LogConsistentGrain<TView> 构造函数

定义

重载

LogConsistentGrain<TView>()
LogConsistentGrain<TView>(IGrainIdentity, IGrainRuntime)

此构造函数特别适用于单元测试,其中测试代码可以创建 Grain 并将 IGrainIdentity、IGrainRuntime 和 State 替换为测试双精度 (模拟/存根) 。

LogConsistentGrain<TView>()

Source:
LogConsistentGrain.cs
protected LogConsistentGrain ();
Protected Sub New ()

适用于

LogConsistentGrain<TView>(IGrainIdentity, IGrainRuntime)

Source:
LogConsistentGrain.cs

此构造函数特别适用于单元测试,其中测试代码可以创建 Grain 并将 IGrainIdentity、IGrainRuntime 和 State 替换为测试双精度 (模拟/存根) 。

protected LogConsistentGrain (Orleans.Core.IGrainIdentity identity, Orleans.Runtime.IGrainRuntime runtime);
new Orleans.LogConsistency.LogConsistentGrain<'View> : Orleans.Core.IGrainIdentity * Orleans.Runtime.IGrainRuntime -> Orleans.LogConsistency.LogConsistentGrain<'View>
Protected Sub New (identity As IGrainIdentity, runtime As IGrainRuntime)

参数

identity
IGrainIdentity
runtime
IGrainRuntime

适用于