Skip to content

Commit

Permalink
Merge pull request #98 from rido-min/fix/singleton
Browse files Browse the repository at this point in the history
AddHostedService
  • Loading branch information
marianan authored Dec 12, 2023
2 parents 9d5a7b6 + b8c2e55 commit 08326e5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Microsoft.Azure.IoT.Edge.Module.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package>
<metadata>
<id>Microsoft.Azure.IoT.Edge.Module</id>
<version>7.0.0</version>
<version>7.0.1</version>
<title>Azure IoT Edge Module</title>
<authors>Microsoft</authors>
<owners>microsoft, nugetazureiotedge</owners>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using SampleModule;

IHost host = Host.CreateDefaultBuilder(args)
.ConfigureServices(services =>services.AddSingleton<ModuleBackgroundService>())
.ConfigureServices(services =>services.AddHostedService<ModuleBackgroundService>())
.Build();

host.Run();
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,6 @@
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<ItemGroup>
<Content Remove="Properties\launchSettingsTEMPLATE..json" />
</ItemGroup>
<ItemGroup>
<_WebToolingArtifacts Remove="Properties\launchSettingsTEMPLATE..json" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Azure.Devices.Client" Version="1.42.0" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="7.0.1" />
Expand Down

0 comments on commit 08326e5

Please sign in to comment.