packages/Microsoft.Extensions.Http.8.0.0/lib/net6.0/Microsoft.Extensions.Http.xml

(开头部分) 130KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<?xml version="1.0"?>
<doc>
    <assembly>
        <name>Microsoft.Extensions.Http</name>
    </assembly>
    <members>
        <member name="T:Microsoft.Extensions.Http.HttpClientFactoryOptions">
            <summary>
            An options class for configuring the default <see cref="T:System.Net.Http.IHttpClientFactory"/>.
            </summary>
        </member>
        <member name="P:Microsoft.Extensions.Http.HttpClientFactoryOptions.HttpMessageHandlerBuilderActions">
            <summary>
            Gets a list of operations used to configure an <see cref="T:Microsoft.Extensions.Http.HttpMessageHandlerBuilder"/>.
            </summary>
        </member>
        <member name="P:Microsoft.Extensions.Http.HttpClientFactoryOptions.HttpClientActions">
            <summary>
            Gets a list of operations used to configure an <see cref="T:System.Net.Http.HttpClient"/>.
            </summary>
        </member>
        <member name="P:Microsoft.Extensions.Http.HttpClientFactoryOptions.HandlerLifetime">
            <summary>
            Gets or sets the length of time that a <see cref="T:System.Net.Http.HttpMessageHandler"/> instance can be reused. Each named
            client can have its own configured handler lifetime value. The default value of this property is two minutes.
            Set the lifetime to <see cref="F:System.Threading.Timeout.InfiniteTimeSpan"/> to disable handler expiry.
            </summary>
            <remarks>
            <para>
            The default implementation of <see cref="T:System.Net.Http.IHttpClientFactory"/> will pool the <see cref="T:System.Net.Http.HttpMessageHandler"/>
            instances created by the factory to reduce resource consumption. This setting configures the amount of time
            a handler can be pooled before it is scheduled for removal from the pool and disposal.
            </para>
            <para>
            Pooling of handlers is desirable as each handler typically manages its own underlying HTTP connections; creating
            more handlers than necessary can result in connection delays. Some handlers also keep connections open indefinitely
            which can prevent the handler from reacting to DNS changes. The value of <see cref="P:Microsoft.Extensions.Http.HttpClientFactoryOptions.HandlerLifetime"/> should be
            chosen with an understanding of the application's requirement to respond to changes in the network environment.
            </para>
            <para>
            Expiry of a handler will not immediately dispose the handler. An expired handler is placed in a separate pool
            which is processed at intervals to dispose handlers only when they become unreachable. Using long-lived
            <see cref="T:System.Net.Http.HttpClient"/> instances will prevent the underlying <see cref="T:System.Net.Http.HttpMessageHandler"/> from being
            disposed until all references are garbage-collected.
            </para>
            </remarks>
        </member>
        <member name="P:Microsoft.Extensions.Http.HttpClientFactoryOptions.ShouldRedactHeaderValue">
            <summary>
            The <see cref="T:System.Func`2"/> which determines whether to redact the HTTP header value before logging.
            </summary>
        </member>
        <member name="P:Microsoft.Extensions.Http.HttpClientFactoryOptions.SuppressHandlerScope">
            <summary>
            <para>
            Gets or sets a value that determines whether the <see cref="T:System.Net.Http.IHttpClientFactory"/> will
            create a dependency injection scope when building an <see cref="T:System.Net.Http.HttpMessageHandler"/>.
            If <c>false</c> (default), a scope will be created, otherwise a scope will not be created.
            </para>
            <para>
后面还有 1568 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。