Skip to content

Commit

Permalink
IResourceRequestHandlerFactory - Clarify HasHandlers documentation
Browse files Browse the repository at this point in the history
Follow up to #3998
  • Loading branch information
amaitland committed Feb 14, 2022
1 parent 0fb3c50 commit 20aba5c
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions CefSharp/IResourceRequestHandlerFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,12 @@ namespace CefSharp
public interface IResourceRequestHandlerFactory
{
/// <summary>
/// Are there any <see cref="ResourceHandler"/>'s registered?
/// Return <see langword="true"/> to have <see cref="GetResourceRequestHandler(IWebBrowser, IBrowser, IFrame, IRequest, bool, bool, string, ref bool)"/>
/// called for every resource request. Otherwise return <see langword="false"/>.
/// </summary>
/// <remarks>
/// <para>
/// Implementors must return <see langword="true"/> from this method if the factory is to be used.
/// The <see cref="GetResourceRequestHandler"/> method will not be executed if this property returns
/// <see langword="false"/>, presumably as an optimisation.
/// </para>
/// If you return <see langword="false"/> then <see cref="GetResourceRequestHandler(IWebBrowser, IBrowser, IFrame, IRequest, bool, bool, string, ref bool)"/>
/// will not be called.
/// </remarks>
bool HasHandlers { get; }

Expand Down

0 comments on commit 20aba5c

Please sign in to comment.