JournaledGrain<TGrainState,TEventBase>.RaiseConditionalEvent<TEvent> Method

Definition

Raise an event conditionally. Succeeds only if there are no conflicts, that is, no other events were raised in the meantime.

C#
protected virtual System.Threading.Tasks.Task<bool> RaiseConditionalEvent<TEvent>(TEvent event) where TEvent : TEventBase;

Type Parameters

TEvent

Parameters

event
TEvent

Event to raise.

Returns

true if successful, false if there was a conflict.

Applies to

Produkt Versiounen
.NET Orleans 1.5.10, 3.4.5, 3.6.0, 7.0.0, 8.0.0, 8.1.0, 8.2.0, 9.0.0