EveMessageResponse
NexusLabs.Eve¶
EveMessageResponse Class¶
Exposes accepted turn metadata and its single-use event stream.
public sealed class EveMessageResponse : System.Collections.Generic.IAsyncEnumerable<NexusLabs.Eve.EveStreamEvent>
Inheritance System.Object 🡒 EveMessageResponse
Implements System.Collections.Generic.IAsyncEnumerable<EveStreamEvent>
Properties¶
EveMessageResponse.ContinuationToken Property¶
Gets the continuation token returned when the turn was accepted.
Property Value¶
EveMessageResponse.SessionId Property¶
Gets the runtime-owned session identifier.
Property Value¶
Methods¶
EveMessageResponse.GetAsyncEnumerator(CancellationToken) Method¶
Gets the single-use event-stream enumerator.
public System.Collections.Generic.IAsyncEnumerator<NexusLabs.Eve.EveStreamEvent> GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken);
Parameters¶
cancellationToken System.Threading.CancellationToken
Stops local stream consumption.
Implements GetAsyncEnumerator(CancellationToken)
Returns¶
System.Collections.Generic.IAsyncEnumerator<EveStreamEvent>
The event-stream enumerator.
Exceptions¶
System.InvalidOperationException
The response was already consumed.
EveMessageResponse.GetOutcomeAsync(CancellationToken) Method¶
Consumes the event stream and aggregates its terminal values.
public System.Threading.Tasks.Task<NexusLabs.Eve.EveTurnOutcome> GetOutcomeAsync(System.Threading.CancellationToken cancellationToken);
Parameters¶
cancellationToken System.Threading.CancellationToken
Stops local stream consumption.
Returns¶
System.Threading.Tasks.Task<EveTurnOutcome>
The aggregated turn outcome.