Skip to content

Commit

Permalink
Added property ChromiumProcessId
Browse files Browse the repository at this point in the history
  • Loading branch information
Kees committed Oct 15, 2023
1 parent 6068856 commit 4dc6cd9
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions ChromiumHtmlToPdfLib/Converter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,21 @@ private string BrowserName
}
}

/// <summary>
/// Returns the Chromium based browser process id or <c>null</c> when the browser is not running
/// </summary>
public int? ChromiumProcessId
{
get
{
if (!IsChromiumRunning)
return null;

_chromiumProcess.Refresh();
return _chromiumProcess.Id;
}
}

/// <summary>
/// Returns <c>true</c> when the Chromium based browser is running
/// </summary>
Expand Down

0 comments on commit 4dc6cd9

Please sign in to comment.