Table of Contents

Struct TelemetryEventArguments<TResult, TArgs>

Namespace
Polly.Telemetry
Assembly
Polly.Core.dll

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 ResilienceTelemetrySource

The source that produced the resilience event.

resilienceEvent ResilienceEvent

The resilience event.

context ResilienceContext

The context associated with the resilience event.

args TArgs

The 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

ResilienceContext

Event

Gets the resilience event.

public ResilienceEvent Event { get; }

Property Value

ResilienceEvent

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; }

Property Value

ResilienceTelemetrySource