Skip to content

Commit d601300

Browse files
committed
Rename GetAvailableChannels to GetSupportedChannels
1 parent 8265b1f commit d601300

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/Installer/Microsoft.Dotnet.Installation/IDotnetReleaseInfoProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace Microsoft.Dotnet.Installation;
1010

1111
public interface IDotnetReleaseInfoProvider
1212
{
13-
IEnumerable<string> GetAvailableChannels();
13+
IEnumerable<string> GetSupportedChannels();
1414

1515
ReleaseVersion? GetLatestVersion(InstallComponent component, string channel);
1616

src/Installer/Microsoft.Dotnet.Installation/Internal/DotnetReleaseInfoProvider.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ namespace Microsoft.Dotnet.Installation.Internal;
1010

1111
internal class DotnetReleaseInfoProvider : IDotnetReleaseInfoProvider
1212
{
13-
public IEnumerable<string> GetAvailableChannels()
13+
public IEnumerable<string> GetSupportedChannels()
1414
{
1515
var releaseManifest = new ReleaseManifest();
16-
return releaseManifest.GetAvailableChannels();
16+
return releaseManifest.GetSupportedChannels();
1717
}
1818
public ReleaseVersion? GetLatestVersion(InstallComponent component, string channel)
1919
{

src/Installer/Microsoft.Dotnet.Installation/Internal/ReleaseManifest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ internal class ReleaseManifest(HttpClient httpClient) : IDisposable
5353
return (major, minor, featureBand, isFullySpecified);
5454
}
5555

56-
public IEnumerable<string> GetAvailableChannels()
56+
public IEnumerable<string> GetSupportedChannels()
5757
{
5858

5959
return ["latest", "preview", "lts", "sts",

src/Installer/dnup/Commands/Sdk/Install/SdkInstallCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public override int Execute()
113113
if (_interactive)
114114
{
115115

116-
SpectreAnsiConsole.WriteLine("Available supported channels: " + string.Join(' ', _releaseInfoProvider.GetAvailableChannels()));
116+
SpectreAnsiConsole.WriteLine("Available supported channels: " + string.Join(' ', _releaseInfoProvider.GetSupportedChannels()));
117117
SpectreAnsiConsole.WriteLine("You can also specify a specific version (for example 9.0.304).");
118118

119119
resolvedChannel = SpectreAnsiConsole.Prompt(

0 commit comments

Comments
 (0)