示例#1
0
        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 AdminPortTcpClientSender(IAdminPacketService adminPacketService)
 {
     this.adminPacketService = adminPacketService;
 }
 public AdminPortClientFactory(IAdminPacketService adminPacketService, IAdminMessageProcessor messageProcessor, ILogger <IAdminPortClient> logger)
 {
     this.adminPacketService = adminPacketService;
     this.logger             = logger;
     this.messageProcessor   = messageProcessor;
 }