JournaledGrain<TGrainState,TEventBase>.RaiseConditionalEvent<TEvent> Method
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 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;
abstract member RaiseConditionalEvent : 'Event -> System.Threading.Tasks.Task<bool>
override this.RaiseConditionalEvent : 'Event -> System.Threading.Tasks.Task<bool>
Protected Overridable Function RaiseConditionalEvent(Of TEvent As TEventBase) (event As TEvent) As Task(Of Boolean)
- TEvent
- event
- TEvent
Event to raise.
true
if successful, false
if there was a conflict.
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 |