Edit

Share via


JournaledGrain<TGrainState,TEventBase> Constructors

Definition

Overloads

JournaledGrain<TGrainState,TEventBase>()

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

JournaledGrain<TGrainState,TEventBase>(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,TEventBase>()

Source:
JournaledGrain.cs

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

protected JournaledGrain ();
Protected Sub New ()

Applies to

JournaledGrain<TGrainState,TEventBase>(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, '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)

Parameters

identity
IGrainIdentity
runtime
IGrainRuntime

Applies to