public Task <bool> SetStatus(string id, ServiceInfoStatus status)
        {
            if (_services.TryGetValue(id, out ServiceInfo service))
            {
                service.Status = status;
                return(Task.FromResult(true));
            }

            return(Task.FromResult(false));
        }
Esempio n. 2
0
 public Task <bool> SetStatus(string id, ServiceInfoStatus status)
 {
     throw new NotImplementedException();
 }
Esempio n. 3
0
 public Task <bool> SetStatus(string id, ServiceInfoStatus status)
 {
     return(Task.FromResult(true));//todo:改变服务可用状态
 }