Skip to content

Commit

Permalink
fix: add comment for net 6 and greater
Browse files Browse the repository at this point in the history
  • Loading branch information
m.tre committed Jun 11, 2024
1 parent f9055e6 commit 612b778
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Vostok.Hosting/VostokHost_Extensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,15 @@ public static VostokHost WithConsoleCancellation([NotNull] this VostokHost vosto
return vostokHost;
}

#if NET6_0_OR_GREATER
/// <summary>
/// Listen <see cref="PosixSignal.SIGTERM"/> and shutdown VostokHost if received.
/// </summary>
#else
/// <summary>
/// Listen <see cref="AppDomain.ProcessExit"/> and shutdown VostokHost if SIGTERM received.
/// </summary>
#endif
public static VostokHost WithSigtermCancellation([NotNull] this VostokHost vostokHost)
{
#if NET6_0_OR_GREATER
Expand Down

0 comments on commit 612b778

Please sign in to comment.