Add lifetime hosted service to detect fully started ASP.NET Core

This commit is contained in:
Konstantin Gross
2020-05-24 02:51:34 +02:00
parent 4ad39ba4c1
commit cac9cfcec8
4 changed files with 54 additions and 2 deletions

View File

@@ -6,6 +6,7 @@ using System;
using System.Runtime.InteropServices;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Hosting;
namespace ElectronNET.API
{
@@ -352,6 +353,11 @@ namespace ElectronNET.API
private event Action<bool> _accessibilitySupportChanged;
/// <summary>
/// Application host fully started.
/// </summary>
public bool IsReady { get; internal set; }
/// <summary>
/// A property that indicates the current application's name, which is the
/// name in the application's `package.json` file.