18 lines
575 B
C#
18 lines
575 B
C#
// Copyright (c) .NET Foundation. All rights reserved.
|
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
|
|
|
using System;
|
|
|
|
namespace Microsoft.Extensions.Hosting
|
|
{
|
|
/// <summary>
|
|
/// Options for <see cref="IHost"/>
|
|
/// </summary>
|
|
public class HostOptions
|
|
{
|
|
/// <summary>
|
|
/// The default timeout for <see cref="IHost.StopAsync(System.Threading.CancellationToken)"/>.
|
|
/// </summary>
|
|
public TimeSpan ShutdownTimeout { get; set; } = TimeSpan.FromSeconds(5);
|
|
}
|
|
} |