Skip to content

IHttpClientTimeout

NexusLabs.Needlr.Generators

IHttpClientTimeout Interface

Capability interface declaring that a named HttpClient options type configures System.Net.Http.HttpClient.Timeout. When implemented, the source generator emits client.Timeout = options.Timeout; into the generated AddHttpClient callback.

public interface IHttpClientTimeout

Derived
IStandardHttpClientOptions

Properties

IHttpClientTimeout.Timeout Property

Gets the per-request timeout applied to the generated HttpClient.

System.TimeSpan Timeout { get; }

Property Value

System.TimeSpan