JournaledGrain<TGrainState,TEventBase>.RaiseConditionalEvents<TEvent> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.