public AdminPortClient(ServerInfo serverInfo, IAdminPacketService adminPacketService, IAdminMessageProcessor messageProcessor, ILogger <IAdminPortClient> logger) { this.ServerInfo = serverInfo; this.logger = logger; this.adminPacketService = adminPacketService; this.messageProcessor = messageProcessor; foreach (var type in Enums.ToArray <AdminUpdateType>()) { this.AdminUpdateSettings.TryAdd(type, new AdminUpdateSetting(false, type, UpdateFrequency.ADMIN_FREQUENCY_AUTOMATIC)); } }
public AdminPortClientFactory(IAdminPacketService adminPacketService, IAdminMessageProcessor messageProcessor, ILogger <IAdminPortClient> logger) { this.adminPacketService = adminPacketService; this.logger = logger; this.messageProcessor = messageProcessor; }