Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -147,4 +147,11 @@ public async Task RegisterNode(CancellationToken cancellationToken)
$"Get consul nodes raised an exception. Exception:{ex.Message},{ex.InnerException.Message}");
}
}

public async Task<IList<Node>> ListServices(string ns = null)
{
// For Consul, namespace is not directly supported, so we return all CAP services
// This is similar to GetNodes but provides a consistent interface
return await GetNodes(ns, CancellationToken.None);
}
}