Struct TelemetryEventArguments<TResult, TArgs>
Represents the information about the resilience event.
public readonly struct TelemetryEventArguments<TResult, TArgs>
Type Parameters
TResult
The type of result.
TArgs
The arguments associated with the resilience event.
- Inherited Members
Remarks
Always use the constructor when creating this struct, otherwise we do not guarantee binary compatibility.
Constructors
TelemetryEventArguments(ResilienceTelemetrySource, ResilienceEvent, ResilienceContext, TArgs, Outcome<TResult>?)
Initializes a new instance of the TelemetryEventArguments<TResult, TArgs> struct.
public TelemetryEventArguments(ResilienceTelemetrySource source, ResilienceEvent resilienceEvent, ResilienceContext context, TArgs args, Outcome<TResult>? outcome)
Parameters
source
ResilienceTelemetrySourceThe source that produced the resilience event.
resilienceEvent
ResilienceEventThe resilience event.
context
ResilienceContextThe context associated with the resilience event.
args
TArgsThe arguments associated with the resilience event.
outcome
Outcome<TResult>?The outcome associated with the resilience event, if any.
Properties
Arguments
Gets the arguments associated with the resilience event.
public TArgs Arguments { get; }
Property Value
- TArgs
Context
Gets the context associated with the resilience event.
public ResilienceContext Context { get; }
Property Value
Event
Gets the resilience event.
public ResilienceEvent Event { get; }
Property Value
Outcome
Gets the outcome associated with the resilience event, if any.
public Outcome<TResult>? Outcome { get; }
Property Value
- Outcome<TResult>?
Source
Gets the source that produced the resilience event.
public ResilienceTelemetrySource Source { get; }