diff --git a/Vostok.Hosting/VostokHost_Extensions.cs b/Vostok.Hosting/VostokHost_Extensions.cs index 62a7df00..a722a063 100644 --- a/Vostok.Hosting/VostokHost_Extensions.cs +++ b/Vostok.Hosting/VostokHost_Extensions.cs @@ -49,9 +49,15 @@ public static VostokHost WithConsoleCancellation([NotNull] this VostokHost vosto return vostokHost; } +#if NET6_0_OR_GREATER + /// + /// Listen and shutdown VostokHost if received. + /// +#else /// /// Listen and shutdown VostokHost if SIGTERM received. /// +#endif public static VostokHost WithSigtermCancellation([NotNull] this VostokHost vostokHost) { #if NET6_0_OR_GREATER