JournaledGrain<TGrainState,TEventBase> コンストラクター

定義

オーバーロード

JournaledGrain<TGrainState,TEventBase>()

JournaledGrain<TGrainState,TEventBase> クラスの新しいインスタンスを初期化します。

JournaledGrain<TGrainState,TEventBase>(IGrainIdentity, IGrainRuntime)

このコンストラクターは、テスト コードで Grain を作成し、IGrainIdentity、IGrainRuntime、State をテスト ダブル (モック/スタブ) に置き換えることができる単体テストに特に役立ちます。

JournaledGrain<TGrainState,TEventBase>()

ソース:
JournaledGrain.cs

JournaledGrain<TGrainState,TEventBase> クラスの新しいインスタンスを初期化します。

protected JournaledGrain ();
Protected Sub New ()

適用対象

JournaledGrain<TGrainState,TEventBase>(IGrainIdentity, IGrainRuntime)

ソース:
JournaledGrain.cs

このコンストラクターは、テスト コードで Grain を作成し、IGrainIdentity、IGrainRuntime、State をテスト ダブル (モック/スタブ) に置き換えることができる単体テストに特に役立ちます。

protected JournaledGrain (Orleans.Core.IGrainIdentity identity, Orleans.Runtime.IGrainRuntime runtime);
new Orleans.EventSourcing.JournaledGrain<'GrainState, 'EventBase (requires 'GrainState : null and 'GrainState : (new : unit -> 'GrainState) and 'EventBase : null)> : Orleans.Core.IGrainIdentity * Orleans.Runtime.IGrainRuntime -> Orleans.EventSourcing.JournaledGrain<'GrainState, 'EventBase (requires 'GrainState : null and 'GrainState : (new : unit -> 'GrainState) and 'EventBase : null)>
Protected Sub New (identity As IGrainIdentity, runtime As IGrainRuntime)

パラメーター

identity
IGrainIdentity
runtime
IGrainRuntime

適用対象