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