From fdea682b3fa30222ac89beef1b33e3cdeee2a088 Mon Sep 17 00:00:00 2001 From: Alex Maitland Date: Tue, 6 Apr 2021 16:38:48 +1000 Subject: [PATCH] Core - Add IRequestContext.IsDisposed --- CefSharp.Core/RequestContext.cs | 6 ++++++ CefSharp/IRequestContext.cs | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/CefSharp.Core/RequestContext.cs b/CefSharp.Core/RequestContext.cs index 52695778d..f70d46c7e 100644 --- a/CefSharp.Core/RequestContext.cs +++ b/CefSharp.Core/RequestContext.cs @@ -75,6 +75,12 @@ namespace CefSharp get { return requestContext.CachePath; } } + /// + public bool IsDisposed + { + get { return requestContext.IsDisposed; } + } + /// public bool IsSame(IRequestContext context) { diff --git a/CefSharp/IRequestContext.cs b/CefSharp/IRequestContext.cs index 4f6105ae0..71259756d 100644 --- a/CefSharp/IRequestContext.cs +++ b/CefSharp/IRequestContext.cs @@ -21,6 +21,10 @@ namespace CefSharp /// public interface IRequestContext : IDisposable { + /// + /// Gets a value indicating whether the RequestContext has been disposed of. + /// + bool IsDisposed { get; } /// /// Returns true if this object is pointing to the same context object. ///