Table of Contents

Class NoRetryHandler

Namespace
Phetch.Core
Assembly
Phetch.Core.dll

A retry handler that can be used to override the retry handler for an endpoint, so that no retries are made.

public sealed class NoRetryHandler : IRetryHandler
Inheritance
NoRetryHandler
Implements
Inherited Members

Methods

ExecuteAsync<TResult>(Func<CancellationToken, Task<TResult>>, CancellationToken)

Invokes the provided query function and optionally handles errors.

public Task<TResult> ExecuteAsync<TResult>(Func<CancellationToken, Task<TResult>> queryFn, CancellationToken ct)

Parameters

queryFn Func<CancellationToken, Task<TResult>>
ct CancellationToken

Returns

Task<TResult>

Type Parameters

TResult