Skip to content

Commit 08326e5

Browse files
authored
Merge pull request #98 from rido-min/fix/singleton
AddHostedService
2 parents 9d5a7b6 + b8c2e55 commit 08326e5

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

Microsoft.Azure.IoT.Edge.Module.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package>
33
<metadata>
44
<id>Microsoft.Azure.IoT.Edge.Module</id>
5-
<version>7.0.0</version>
5+
<version>7.0.1</version>
66
<title>Azure IoT Edge Module</title>
77
<authors>Microsoft</authors>
88
<owners>microsoft, nugetazureiotedge</owners>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using SampleModule;
22

33
IHost host = Host.CreateDefaultBuilder(args)
4-
.ConfigureServices(services =>services.AddSingleton<ModuleBackgroundService>())
4+
.ConfigureServices(services =>services.AddHostedService<ModuleBackgroundService>())
55
.Build();
66

77
host.Run();

content/dotnet-template-azure-iot-edge-module/CSharp/SampleModule.csproj

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,6 @@
44
<Nullable>enable</Nullable>
55
<ImplicitUsings>enable</ImplicitUsings>
66
</PropertyGroup>
7-
<ItemGroup>
8-
<Content Remove="Properties\launchSettingsTEMPLATE..json" />
9-
</ItemGroup>
10-
<ItemGroup>
11-
<_WebToolingArtifacts Remove="Properties\launchSettingsTEMPLATE..json" />
12-
</ItemGroup>
13-
147
<ItemGroup>
158
<PackageReference Include="Microsoft.Azure.Devices.Client" Version="1.42.0" />
169
<PackageReference Include="Microsoft.Extensions.Hosting" Version="7.0.1" />

0 commit comments

Comments
 (0)