mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-14 08:44:16 +01:00
- reload configs on change
- remove grpc config service replace with http - add messaging to channel
This commit is contained in:
parent
3490c5c8d8
commit
aa03d400d4
38 changed files with 304 additions and 377 deletions
|
|
@ -1,5 +1,4 @@
|
|||
using System.Globalization;
|
||||
using System.Reflection;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
using System.Text.Json;
|
||||
|
||||
|
|
@ -7,9 +6,11 @@ namespace MareSynchronosShared.Utils;
|
|||
|
||||
public class MareConfigurationBase : IMareConfiguration
|
||||
{
|
||||
public Uri MainServerAddress { get; set; }
|
||||
public int DbContextPoolSize { get; set; } = 100;
|
||||
public string ShardName { get; set; } = string.Empty;
|
||||
public int MetricsPort { get; set; }
|
||||
public string Jwt { get; set; } = string.Empty;
|
||||
|
||||
public T GetValue<T>(string key)
|
||||
{
|
||||
|
|
@ -39,6 +40,7 @@ public class MareConfigurationBase : IMareConfiguration
|
|||
{
|
||||
StringBuilder sb = new();
|
||||
sb.AppendLine(base.ToString());
|
||||
sb.AppendLine($"{nameof(MainServerAddress)} => {MainServerAddress}");
|
||||
sb.AppendLine($"{nameof(ShardName)} => {ShardName}");
|
||||
sb.AppendLine($"{nameof(DbContextPoolSize)} => {DbContextPoolSize}");
|
||||
return sb.ToString();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue