Ejemplo n.º 1
0
 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>();
 }
Ejemplo n.º 2
0
        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();
        }
Ejemplo n.º 3
0
 public CommandBase(ICoreServiceHost core)
 {
     Core = core ?? throw new ArgumentNullException(nameof(core));
 }
Ejemplo n.º 4
0
 public LogoutCommand(ICoreServiceHost core) : base(core)
 {
 }
Ejemplo n.º 5
0
 public ProcessRequestCommand(ICoreServiceHost core) : base(core)
 {
 }