Skip to content

Commit

Permalink
Fixed #33
Browse files Browse the repository at this point in the history
  • Loading branch information
mikoskinen committed Oct 14, 2020
1 parent adabb19 commit a48b0b1
Show file tree
Hide file tree
Showing 10 changed files with 101 additions and 2 deletions.
6 changes: 6 additions & 0 deletions samples/BlazorApp/BlazorApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,10 @@
<ProjectReference Include="..\Shared\Weikio.PluginFramework.Samples.Shared\Weikio.PluginFramework.Samples.Shared.csproj" />
</ItemGroup>

<ItemGroup>
<Content Update="Properties\launchSettings.json">
<CopyToPublishDirectory>Never</CopyToPublishDirectory>
</Content>
</ItemGroup>

</Project>
14 changes: 14 additions & 0 deletions samples/BlazorApp/Properties/launchSettings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "http://json.schemastore.org/launchsettings.json",
"profiles": {
"BlazorApp": {
"commandName": "Project",
"launchBrowser": true,
"launchUrl": "",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"applicationUrl": "https://localhost:5001;http://localhost:5000"
}
}
}
14 changes: 14 additions & 0 deletions samples/WebApp/Properties/launchSettings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "http://json.schemastore.org/launchsettings.json",
"profiles": {
"WebApp": {
"commandName": "Project",
"launchBrowser": true,
"launchUrl": "Calculator",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"applicationUrl": "https://localhost:5001;http://localhost:5000"
}
}
}
6 changes: 6 additions & 0 deletions samples/WebApp/WebApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,11 @@
<ProjectReference Include="..\Shared\Weikio.PluginFramework.Samples.Shared\Weikio.PluginFramework.Samples.Shared.csproj" />
</ItemGroup>

<ItemGroup>
<Content Update="Properties\launchSettings.json">
<CopyToPublishDirectory>Never</CopyToPublishDirectory>
</Content>
</ItemGroup>


</Project>
14 changes: 14 additions & 0 deletions samples/WebAppWithDelegate/Properties/launchSettings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "http://json.schemastore.org/launchsettings.json",
"profiles": {
"WebAppWithDelegate": {
"commandName": "Project",
"launchBrowser": true,
"launchUrl": "Delegate",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"applicationUrl": "https://localhost:5001;http://localhost:5000"
}
}
}
6 changes: 6 additions & 0 deletions samples/WebAppWithDelegate/WebAppWithDelegate.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,10 @@
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
</ItemGroup>

<ItemGroup>
<Content Update="Properties\launchSettings.json">
<CopyToPublishDirectory>Never</CopyToPublishDirectory>
</Content>
</ItemGroup>

</Project>
14 changes: 14 additions & 0 deletions samples/WebAppWithNuget/Properties/launchSettings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "http://json.schemastore.org/launchsettings.json",
"profiles": {
"WebAppWithNuget": {
"commandName": "Project",
"launchBrowser": true,
"launchUrl": "Calculator",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"applicationUrl": "https://localhost:5001;http://localhost:5000"
}
}
}
14 changes: 14 additions & 0 deletions samples/WebAppWithRoslyn/Properties/launchSettings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "http://json.schemastore.org/launchsettings.json",
"profiles": {
"WebAppWithRoslyn": {
"commandName": "Project",
"launchBrowser": true,
"launchUrl": "Roslyn",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"applicationUrl": "https://localhost:5001;http://localhost:5000"
}
}
}
6 changes: 6 additions & 0 deletions samples/WebAppWithRoslyn/WebAppWithRoslyn.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,11 @@
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
</ItemGroup>

<ItemGroup>
<Content Update="Properties\launchSettings.json">
<CopyToPublishDirectory>Never</CopyToPublishDirectory>
</Content>
</ItemGroup>


</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

namespace Weikio.PluginFramework.AspNetCore
{
public class PluginFrameworkInitializer : BackgroundService
public class PluginFrameworkInitializer : IHostedService
{
private readonly IEnumerable<IPluginCatalog> _pluginCatalogs;
private readonly ILogger<PluginFrameworkInitializer> _logger;
Expand All @@ -20,7 +20,7 @@ public PluginFrameworkInitializer(IEnumerable<IPluginCatalog> pluginCatalogs, IL
_logger = logger;
}

protected override async Task ExecuteAsync(CancellationToken stoppingToken)
public async Task StartAsync(CancellationToken cancellationToken)
{
try
{
Expand Down Expand Up @@ -57,5 +57,10 @@ protected override async Task ExecuteAsync(CancellationToken stoppingToken)
throw;
}
}

public Task StopAsync(CancellationToken cancellationToken)
{
return Task.CompletedTask;
}
}
}

0 comments on commit a48b0b1

Please sign in to comment.