From aee7eb4af89d26294b81df33eafbd89e4b618f1a Mon Sep 17 00:00:00 2001 From: Lucca Faria Ferri Date: Mon, 20 Feb 2023 03:51:54 -0800 Subject: [PATCH] Small changes. --- src/DiIiS-NA/BGS-Server/ServicesSystem/Service.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/DiIiS-NA/BGS-Server/ServicesSystem/Service.cs b/src/DiIiS-NA/BGS-Server/ServicesSystem/Service.cs index abe8b30..cb3b8ae 100644 --- a/src/DiIiS-NA/BGS-Server/ServicesSystem/Service.cs +++ b/src/DiIiS-NA/BGS-Server/ServicesSystem/Service.cs @@ -28,14 +28,14 @@ namespace DiIiS_NA.LoginServer.ServicesSystem public static class Service { private static uint _notImplementedServiceCounter = 99; - public readonly static Dictionary ProvidedServices = new Dictionary(); - public readonly static Dictionary Services = new Dictionary(); + private readonly static Dictionary ProvidedServices = new(); + private readonly static Dictionary Services = new(); static Service() { foreach (var type in Assembly.GetExecutingAssembly().GetTypes().Where(type => type.GetInterface("IServerService") != null)) { - object[] attributes = type.GetCustomAttributes(typeof(ServiceAttribute), true); + var attributes = type.GetCustomAttributes(typeof(ServiceAttribute), true); if (attributes.Length == 0) return; ProvidedServices.Add(type, (ServiceAttribute)attributes[0]);