Skip to content
This repository has been archived by the owner on Oct 4, 2021. It is now read-only.

Commit

Permalink
PR Feedback
Browse files Browse the repository at this point in the history
- Fix up formatting
- Move from IList to IReadOnlyList where appropriate
  • Loading branch information
iantoalms committed Jan 22, 2020
1 parent b0d4b24 commit e6e1057
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public AuthenticationParameter (string name)
Name = name;
}

public static IList<AuthenticationParameter> CreateSupportedParameterList (IReadOnlyDictionary<string, string> parameterChoices)
public static IReadOnlyList<AuthenticationParameter> CreateSupportedParameterList (IReadOnlyDictionary<string, string> parameterChoices)
{
return parameterChoices.Where (choice => supportedParameters.Contains (choice.Key))
.Select (parameter => new AuthenticationParameter (parameter.Key))
Expand All @@ -69,7 +69,7 @@ public static IList<AuthenticationParameter> CreateSupportedParameterList (IRead

class DotNetCoreProjectTemplateParameters
{
public static IList<AuthenticationParameter> GetAuthenticationParameters (string templateId)
public static IReadOnlyList<AuthenticationParameter> GetAuthenticationParameters (string templateId)
{
if (IdeServices.TemplatingService.GetSolutionTemplate (templateId) is MicrosoftTemplateEngineSolutionTemplate template) {
if (template.IsSupportedParameter (AuthenticationParameter.ParameterName)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public override WizardPage GetPage (int pageNumber)

internal IList<TargetFramework> TargetFrameworks => targetFrameworks;

internal IList<AuthenticationParameter> SupportedAuthentications { get; private set; }
internal IReadOnlyList<AuthenticationParameter> SupportedAuthentications { get; private set; }

/// <summary>
/// When only .NET Core 2.0 is installed there is only one option in the drop down
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class DotNetCoreProjectTemplateWizardPage : WizardPage
public DotNetCoreProjectTemplateWizardPage (
DotNetCoreProjectTemplateWizard wizard,
List<TargetFramework> targetFrameworks,
IList<AuthenticationParameter> supportedAuthentications)
IReadOnlyList<AuthenticationParameter> supportedAuthentications)
{
this.wizard = wizard;
this.targetFrameworks = targetFrameworks;
Expand Down Expand Up @@ -118,7 +118,7 @@ void UpdateTargetFrameworkParameters ()
wizard.Parameters [parameter] = "true";
}

public IList<AuthenticationParameter> SupportedAuthentications { get; }
public IReadOnlyList<AuthenticationParameter> SupportedAuthentications { get; }

int selectedAuthenticationIndex;

Expand Down

0 comments on commit e6e1057

Please sign in to comment.