Skip to content

JournaledGrain<TGrainState, TEventBase>.RaiseConditionalEvent(TEvent)

RaiseConditionalEvent(TEvent)

virtual
View source
protected virtual Task<bool> JournaledGrain<TGrainState, RaiseConditionalEvent<TEvent>(TEvent @event)
Raise an event conditionally. Succeeds only if there are no conflicts, that is, no other events were raised in the meantime.

Parameters

eventTEvent
Event to raise.

Returns

true if successful, false if there was a conflict.