Skip to content

[Templates] Diagnostics improvements and certificate fixes#21493

Merged
dougbu merged 6 commits into
masterfrom
javiercn/more-data
May 6, 2020
Merged

[Templates] Diagnostics improvements and certificate fixes#21493
dougbu merged 6 commits into
masterfrom
javiercn/more-data

Conversation

@javiercn
Copy link
Copy Markdown
Member

@javiercn javiercn commented May 5, 2020

  • Move template specific helpers back to templates.
  • Fix casing issue when loading the certificate.
  • Capture startup output and throw when the app can't find the listening URL

@ghost ghost added the area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates label May 5, 2020
Copy link
Copy Markdown
Contributor

@pranavkm pranavkm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As long as it works 👍

Copy link
Copy Markdown
Contributor

@dougbu dougbu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM though I have a couple of questions about hidden output / details

Comment thread src/ProjectTemplates/Shared/AspNetProcess.cs
}

throw new InvalidOperationException(@$"Couldn't find listening url:
{string.Join(Environment.NewLine, buffer)}");
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

return RequestWithRetries(client => client.GetAsync(new Uri(ListeningUri, path)), _httpClient);
}
internal Task<HttpResponseMessage> SendRequest(string path) =>
RetryHelper.RetryRequest(() => _httpClient.GetAsync(new Uri(ListeningUri, path)), logger: NullLogger.Instance);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another question about hiding details here…

Comment thread src/ProjectTemplates/Shared/AspNetProcess.cs
@javiercn javiercn force-pushed the javiercn/more-data branch from 2de1a55 to a8a9593 Compare May 5, 2020 21:43
@dougbu dougbu merged commit d640937 into master May 6, 2020
@dougbu dougbu deleted the javiercn/more-data branch May 6, 2020 02:39
@javiercn
Copy link
Copy Markdown
Member Author

javiercn commented May 6, 2020

Thanks @dougbu for baby sitting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants