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

21 lines
566 B
C#

// Copyright Epic Games, Inc. All Rights Reserved.
namespace HordeServer.Configuration
{
/// <summary>
/// Interface for the config service
/// </summary>
public interface IConfigService
{
/// <summary>
/// Event for notifications that the config has been updated
/// </summary>
event Action<ConfigUpdateInfo>? OnConfigUpdate;
/// <summary>
/// Validate a new set of config files. Parses and runs PostLoad methods on them.
/// </summary>
Task<string?> ValidateAsync(Dictionary<Uri, byte[]> files, CancellationToken cancellationToken);
}
}