VanguardReMaster/server/src/Vanguard.Server/Configuration/OrleansOptions.cs

20 lines
850 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

namespace Vanguard.Server.Configuration;
/// <summary>
/// Оркестрация матчей через Orleans. В тестах и локальной разработке по
/// умолчанию выключена: матчи живут в одном процессе, как раньше.
/// В docker-compose включена, чтобы граны активировались в silo.
/// </summary>
public sealed class OrleansOptions
{
public const string SectionName = "Orleans";
public bool Enabled { get; set; }
/// <summary>Порт silo. По умолчанию стандартный Orleans 11111.</summary>
public int SiloPort { get; set; } = 11111;
/// <summary>Порт gateway. По умолчанию стандартный Orleans 30000.</summary>
public int GatewayPort { get; set; } = 30000;
}