-
Notifications
You must be signed in to change notification settings - Fork 25.1k
Closed
Labels
Source - Docs.msDocs Customer feedback via GitHub IssueDocs Customer feedback via GitHub Issueaspnet-core/svcdoc-bughosting-deployment/subsvcokr-healthContent health internal initiativeContent health internal initiativeseQUESTeredIdentifies that an issue has been imported into Quest.Identifies that an issue has been imported into Quest.
Description
Description
In the codeblock
using SampleApp.Services;
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddRazorPages();
builder.Services.AddWindowsService();
builder.Services.AddHostedService<ServiceA>();
var app = builder.Build();
app.MapRazorPages();
app.Run();This line is marked:
builder.Services.AddRazorPages();
Which is completely irrelevant to the topic.
The Documentation hints, that those lines are relevant:
builder.Services.AddWindowsService();
builder.Services.AddHostedService<ServiceA>();Page URL
Content source URL
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/host-and-deploy/windows-service.md
Document ID
4b60d24e-ef05-15e5-10b4-483094081bf3
Article author
Metadata
Metadata
Assignees
Labels
Source - Docs.msDocs Customer feedback via GitHub IssueDocs Customer feedback via GitHub Issueaspnet-core/svcdoc-bughosting-deployment/subsvcokr-healthContent health internal initiativeContent health internal initiativeseQUESTeredIdentifies that an issue has been imported into Quest.Identifies that an issue has been imported into Quest.