Szerkesztés

Megosztás a következőn keresztül:


JournaledGrain<TGrainState> Constructors

Definition

Overloads

JournaledGrain<TGrainState>()

Initializes a new instance of the JournaledGrain<TGrainState> class.

JournaledGrain<TGrainState>(IGrainIdentity, IGrainRuntime)

This constructor is particularly useful for unit testing where test code can create a Grain and replace the IGrainIdentity, IGrainRuntime and State with test doubles (mocks/stubs).

JournaledGrain<TGrainState>()

Source:
JournaledGrain.cs

Initializes a new instance of the JournaledGrain<TGrainState> class.

protected JournaledGrain ();
Protected Sub New ()

Applies to

JournaledGrain<TGrainState>(IGrainIdentity, IGrainRuntime)

Source:
JournaledGrain.cs

This constructor is particularly useful for unit testing where test code can create a Grain and replace the IGrainIdentity, IGrainRuntime and State with test doubles (mocks/stubs).

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

Parameters

identity
IGrainIdentity
runtime
IGrainRuntime

Applies to