示例#1
0
        public void Join(String name)
        {
            SubSystem sys = new SubSystem()
            {
                Id = Context.ConnectionId,
                SystemName = name,
                TimeStamp = DateTime.Now.ToShortTimeString(),
                Connected = true
            };

            _repository.Add(sys);
            Clients.All.SystemStatusChanged(sys);
        }
 public void Remove(SubSystem sys)
 {
     _connectedSystems.Remove(sys);
 }
 public void Add(SubSystem sys)
 {
     _connectedSystems.Add(sys);
 }