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

Definition

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

protected virtual System.Threading.Tasks.Task<bool> RaiseConditionalEvents<TEvent> (System.Collections.Generic.IEnumerable<TEvent> events) where TEvent : TEventBase;
abstract member RaiseConditionalEvents : seq<#'EventBase> -> System.Threading.Tasks.Task<bool>
override this.RaiseConditionalEvents : seq<#'EventBase> -> System.Threading.Tasks.Task<bool>
Protected Overridable Function RaiseConditionalEvents(Of TEvent As TEventBase) (events As IEnumerable(Of TEvent)) As Task(Of Boolean)

Type Parameters

TEvent

Parameters

events
IEnumerable<TEvent>

Events to raise

Returns

true if successful, false if there was a conflict.

Applies to