Skip to content

Commit 5d14f7c

Browse files
authored
Add property Cef.IsShutdown to allow checks for the shutdown state of Cef runtime (#3782) (#3783)
1 parent 46e9a1b commit 5d14f7c

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

CefSharp.Core.Runtime/Cef.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,16 @@ namespace CefSharp
9494
}
9595
}
9696

97+
/// <summary>Gets a value that indicates whether CefSharp was shutdown.</summary>
98+
/// <value>true if CefSharp was shutdown; otherwise, false.</value>
99+
static property bool IsShutdown
100+
{
101+
bool get()
102+
{
103+
return _hasShutdown;
104+
}
105+
}
106+
97107
/// <summary>Gets a value that indicates the version of CefSharp currently being used.</summary>
98108
/// <value>The CefSharp version.</value>
99109
static property String^ CefSharpVersion

CefSharp.Core/Cef.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,13 @@ public static bool IsInitialized
4747
get { return Core.Cef.IsInitialized; }
4848
}
4949

50+
/// <summary>Gets a value that indicates whether CefSharp was shutdown.</summary>
51+
/// <value>true if CefSharp was shutdown; otherwise, false.</value>
52+
public static bool IsShutdown
53+
{
54+
get { return Core.Cef.IsShutdown; }
55+
}
56+
5057
/// <summary>Gets a value that indicates the version of CefSharp currently being used.</summary>
5158
/// <value>The CefSharp version.</value>
5259
public static string CefSharpVersion

0 commit comments

Comments
 (0)