<PackageReference Include="Polly.Core" Version="8.3.0" />

TelemetryEventArguments<TResult, TArgs>

public struct TelemetryEventArguments<TResult, TArgs>
Represents the information about the resilience event.
public TArgs Arguments { get; }

Gets the arguments associated with the resilience event.

public ResilienceContext Context { get; }

Gets the context associated with the resilience event.

public ResilienceEvent Event { get; }

Gets the resilience event.

public Outcome<TResult>? Outcome { get; }

Gets the outcome associated with the resilience event, if any.

Gets the source that produced the resilience event.

public TelemetryEventArguments(ResilienceTelemetrySource source, ResilienceEvent resilienceEvent, ResilienceContext context, TArgs args, Outcome<TResult>? outcome)

Initializes a new instance of the TelemetryEventArguments<T, U> struct.