-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
♻️ Fix graceful shutdown and add reconnection logic in overlay.
Settings UI code is refactored to accomodate the refactoring for improved lifecycle management, but doesn't reconnect at all.
- Loading branch information
Showing
24 changed files
with
565 additions
and
226 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using System.ServiceModel; | ||
|
||
namespace Exo.Contracts.Ui; | ||
|
||
[ServiceContract(Name = "ServiceLifetime")] | ||
public interface IServiceLifetimeService | ||
{ | ||
/// <summary>Tries to get the SHA1 service version.</summary> | ||
/// <remarks>This call is guaranteed to return a value is the service is started and not shutting down.</remarks> | ||
/// <param name="cancellationToken"></param> | ||
/// <returns>The service version as an SHA1 commit id, or <see langword="null"/> if the service is stopped.</returns> | ||
[OperationContract(Name = "TryGetVersion")] | ||
ValueTask<string?> TryGetVersionAsync(CancellationToken cancellationToken); | ||
|
||
/// <summary>Waits for the service to stop.</summary> | ||
/// <param name="cancellationToken"></param> | ||
/// <returns></returns> | ||
[OperationContract(Name = "WaitForStop")] | ||
Task WaitForStopAsync(CancellationToken cancellationToken); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.