Skip to content

Commit

Permalink
Add property Cef.IsShutdown to allow checks for the shutdown state of…
Browse files Browse the repository at this point in the history
… Cef runtime (#3782) (#3783)
  • Loading branch information
jozefizso authored Aug 30, 2021
1 parent 46e9a1b commit 5d14f7c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
10 changes: 10 additions & 0 deletions CefSharp.Core.Runtime/Cef.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,16 @@ namespace CefSharp
}
}

/// <summary>Gets a value that indicates whether CefSharp was shutdown.</summary>
/// <value>true if CefSharp was shutdown; otherwise, false.</value>
static property bool IsShutdown
{
bool get()
{
return _hasShutdown;
}
}

/// <summary>Gets a value that indicates the version of CefSharp currently being used.</summary>
/// <value>The CefSharp version.</value>
static property String^ CefSharpVersion
Expand Down
7 changes: 7 additions & 0 deletions CefSharp.Core/Cef.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@ public static bool IsInitialized
get { return Core.Cef.IsInitialized; }
}

/// <summary>Gets a value that indicates whether CefSharp was shutdown.</summary>
/// <value>true if CefSharp was shutdown; otherwise, false.</value>
public static bool IsShutdown
{
get { return Core.Cef.IsShutdown; }
}

/// <summary>Gets a value that indicates the version of CefSharp currently being used.</summary>
/// <value>The CefSharp version.</value>
public static string CefSharpVersion
Expand Down

0 comments on commit 5d14f7c

Please sign in to comment.