Struct TelemetryEventArguments<TResult, TArgs>
Represents the information about the resilience event.
public readonly struct TelemetryEventArguments<TResult, TArgs>
Type Parameters
TResultThe type of result.
TArgsThe 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
sourceResilienceTelemetrySourceThe source that produced the resilience event.
resilienceEventResilienceEventThe resilience event.
contextResilienceContextThe context associated with the resilience event.
argsTArgsThe arguments associated with the resilience event.
outcomeOutcome<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; }