Files
UnrealEngine/Engine/Source/Programs/Horde/HordeServer.Shared/Server/ILifetimeService.cs
2025-05-18 13:04:45 +08:00

21 lines
425 B
C#

// Copyright Epic Games, Inc. All Rights Reserved.
namespace HordeServer.Server
{
/// <summary>
/// Interface for the server lifetime service
/// </summary>
public interface ILifetimeService
{
/// <summary>
/// Returns true if the server is stopping
/// </summary>
bool IsStopping { get; }
/// <summary>
/// Gets an awaitable task for the server stopping
/// </summary>
Task StoppingTask { get; }
}
}