15 lines
417 B
C#
15 lines
417 B
C#
using Kurisu.RemoteCall.Abstractions;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace Dlhis.Basic.Api.ClientHandler;
|
|
|
|
public class LongRunClientHandler : IHttpRemoteCallPolicyHandler
|
|
{
|
|
/// <inheritdoc />
|
|
public IHttpClientBuilder ConfigureHttpClient(IHttpClientBuilder builder)
|
|
{
|
|
builder.ConfigureHttpClient(x => { x.Timeout = TimeSpan.FromHours(1); });
|
|
|
|
return builder;
|
|
}
|
|
} |