Skip to content

Commit a48b0b1

Browse files
committed
Fixed #33
1 parent adabb19 commit a48b0b1

10 files changed

Lines changed: 101 additions & 2 deletions

File tree

samples/BlazorApp/BlazorApp.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,10 @@
99
<ProjectReference Include="..\Shared\Weikio.PluginFramework.Samples.Shared\Weikio.PluginFramework.Samples.Shared.csproj" />
1010
</ItemGroup>
1111

12+
<ItemGroup>
13+
<Content Update="Properties\launchSettings.json">
14+
<CopyToPublishDirectory>Never</CopyToPublishDirectory>
15+
</Content>
16+
</ItemGroup>
17+
1218
</Project>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"$schema": "http://json.schemastore.org/launchsettings.json",
3+
"profiles": {
4+
"BlazorApp": {
5+
"commandName": "Project",
6+
"launchBrowser": true,
7+
"launchUrl": "",
8+
"environmentVariables": {
9+
"ASPNETCORE_ENVIRONMENT": "Development"
10+
},
11+
"applicationUrl": "https://localhost:5001;http://localhost:5000"
12+
}
13+
}
14+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"$schema": "http://json.schemastore.org/launchsettings.json",
3+
"profiles": {
4+
"WebApp": {
5+
"commandName": "Project",
6+
"launchBrowser": true,
7+
"launchUrl": "Calculator",
8+
"environmentVariables": {
9+
"ASPNETCORE_ENVIRONMENT": "Development"
10+
},
11+
"applicationUrl": "https://localhost:5001;http://localhost:5000"
12+
}
13+
}
14+
}

samples/WebApp/WebApp.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,11 @@
1010
<ProjectReference Include="..\Shared\Weikio.PluginFramework.Samples.Shared\Weikio.PluginFramework.Samples.Shared.csproj" />
1111
</ItemGroup>
1212

13+
<ItemGroup>
14+
<Content Update="Properties\launchSettings.json">
15+
<CopyToPublishDirectory>Never</CopyToPublishDirectory>
16+
</Content>
17+
</ItemGroup>
18+
1319

1420
</Project>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"$schema": "http://json.schemastore.org/launchsettings.json",
3+
"profiles": {
4+
"WebAppWithDelegate": {
5+
"commandName": "Project",
6+
"launchBrowser": true,
7+
"launchUrl": "Delegate",
8+
"environmentVariables": {
9+
"ASPNETCORE_ENVIRONMENT": "Development"
10+
},
11+
"applicationUrl": "https://localhost:5001;http://localhost:5000"
12+
}
13+
}
14+
}

samples/WebAppWithDelegate/WebAppWithDelegate.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,10 @@
1212
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
1313
</ItemGroup>
1414

15+
<ItemGroup>
16+
<Content Update="Properties\launchSettings.json">
17+
<CopyToPublishDirectory>Never</CopyToPublishDirectory>
18+
</Content>
19+
</ItemGroup>
20+
1521
</Project>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"$schema": "http://json.schemastore.org/launchsettings.json",
3+
"profiles": {
4+
"WebAppWithNuget": {
5+
"commandName": "Project",
6+
"launchBrowser": true,
7+
"launchUrl": "Calculator",
8+
"environmentVariables": {
9+
"ASPNETCORE_ENVIRONMENT": "Development"
10+
},
11+
"applicationUrl": "https://localhost:5001;http://localhost:5000"
12+
}
13+
}
14+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"$schema": "http://json.schemastore.org/launchsettings.json",
3+
"profiles": {
4+
"WebAppWithRoslyn": {
5+
"commandName": "Project",
6+
"launchBrowser": true,
7+
"launchUrl": "Roslyn",
8+
"environmentVariables": {
9+
"ASPNETCORE_ENVIRONMENT": "Development"
10+
},
11+
"applicationUrl": "https://localhost:5001;http://localhost:5000"
12+
}
13+
}
14+
}

samples/WebAppWithRoslyn/WebAppWithRoslyn.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,11 @@
1313
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
1414
</ItemGroup>
1515

16+
<ItemGroup>
17+
<Content Update="Properties\launchSettings.json">
18+
<CopyToPublishDirectory>Never</CopyToPublishDirectory>
19+
</Content>
20+
</ItemGroup>
21+
1622

1723
</Project>

src/Weikio.PluginFramework.AspNetCore/PluginFrameworkInitializer.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
namespace Weikio.PluginFramework.AspNetCore
1111
{
12-
public class PluginFrameworkInitializer : BackgroundService
12+
public class PluginFrameworkInitializer : IHostedService
1313
{
1414
private readonly IEnumerable<IPluginCatalog> _pluginCatalogs;
1515
private readonly ILogger<PluginFrameworkInitializer> _logger;
@@ -20,7 +20,7 @@ public PluginFrameworkInitializer(IEnumerable<IPluginCatalog> pluginCatalogs, IL
2020
_logger = logger;
2121
}
2222

23-
protected override async Task ExecuteAsync(CancellationToken stoppingToken)
23+
public async Task StartAsync(CancellationToken cancellationToken)
2424
{
2525
try
2626
{
@@ -57,5 +57,10 @@ protected override async Task ExecuteAsync(CancellationToken stoppingToken)
5757
throw;
5858
}
5959
}
60+
61+
public Task StopAsync(CancellationToken cancellationToken)
62+
{
63+
return Task.CompletedTask;
64+
}
6065
}
6166
}

0 commit comments

Comments
 (0)