Skip to content

Commit

Permalink
fix: LiveStreamingServerBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
josephnhtam committed Sep 8, 2024
1 parent 00a31ab commit 37391bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/LiveStreamingServerNet/LiveStreamingServerBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ public ILiveStreamingServerBuilder ConfigureServer(Action<IServerConfigurator> c
public ILiveStreamingServer Build()
{
Services.AddRtmpServer(_configureRtmpServer, _configureServer);
Services.AddHostedService<ConfigurableLiveStreamingServerService>();
Services.AddSingleton<ConfigurableLiveStreamingServerService>();
Services.AddHostedService(svc => svc.GetRequiredService<ConfigurableLiveStreamingServerService>());

Services.Configure<ConsoleLifetimeOptions>(options => options.SuppressStatusMessages = true);

Expand Down
2 changes: 1 addition & 1 deletion src/LiveStreamingServerNet/LiveStreamingServerNet.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<PackageTags>live-streaming;rtmp;flv;http-flv;websocket-flv;hls</PackageTags>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<Version>0.14.6</Version>
<Version>0.14.7</Version>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 37391bd

Please sign in to comment.