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)); }
public Task <bool> SetStatus(string id, ServiceInfoStatus status) { throw new NotImplementedException(); }
public Task <bool> SetStatus(string id, ServiceInfoStatus status) { return(Task.FromResult(true));//todo:改变服务可用状态 }