public UserInfo(ICoreServiceHost core, string id, string login) { _core = core ?? throw new ArgumentNullException(nameof(core)); _heartbeatResponse = new HeartbeatResponse(string.Empty); ID = string.IsNullOrEmpty(id) ? throw new ArgumentNullException(nameof(id)) : id; Login = string.IsNullOrEmpty(login) ? throw new ArgumentNullException(nameof(login)) : login; Accounts = new List <CommonObjects.AccountInfo>(); }
public ServiceHost() { var config = new LocalConfigHelper(Assembly.GetExecutingAssembly().Location, " WebSocket Service"); IP = config.GetString(nameof(IP)); Port = config.GetInt(nameof(Port)); var core = new CoreServiceHost(); _commandManager = core.CommandManager; _webSocketServer = core.WebSocketServer; _core = core; RegsterCommands(); }
public CommandBase(ICoreServiceHost core) { Core = core ?? throw new ArgumentNullException(nameof(core)); }
public LogoutCommand(ICoreServiceHost core) : base(core) { }
public ProcessRequestCommand(ICoreServiceHost core) : base(core) { }