// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using System.Diagnostics;
using System.Threading;
using Microsoft.Extensions.Logging;
/// <summary>
/// Allows consumers to perform cleanup during a graceful shutdown.
/// </summary>
+ [DebuggerDisplay("ApplicationStarted = {ApplicationStarted.IsCancellationRequested}, " +
+ "ApplicationStopping = {ApplicationStopping.IsCancellationRequested}, " +
+ "ApplicationStopped = {ApplicationStopped.IsCancellationRequested}")]
#pragma warning disable CS0618 // Type or member is obsolete
public class ApplicationLifetime : IApplicationLifetime, IHostApplicationLifetime
#pragma warning restore CS0618 // Type or member is obsolete
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
+using System.Diagnostics;
using Microsoft.Extensions.FileProviders;
namespace Microsoft.Extensions.Hosting.Internal
{
-#pragma warning disable CS0618 // Type or member is obsolete
/// <summary>
/// This API supports infrastructure and is not intended to be used
/// directly from your code. This API may change or be removed in future releases.
/// </summary>
+ [DebuggerDisplay("ApplicationName = {ApplicationName}, EnvironmentName = {EnvironmentName}")]
+#pragma warning disable CS0618 // Type or member is obsolete
public class HostingEnvironment : IHostingEnvironment, IHostEnvironment
#pragma warning restore CS0618 // Type or member is obsolete
{