/* * Copyright (c) 2024 ETH Zürich, IT Services * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ using SafeExamBrowser.Settings.Browser.Filter; namespace SafeExamBrowser.Browser.Contracts.Filters { /// /// Defines a request filter rule. /// public interface IRule { /// /// The filter result to be used if the rule matches a request. /// FilterResult Result { get; } /// /// Initializes the rule for processing requests. /// void Initialize(FilterRuleSettings settings); /// /// Indicates whether the rule applies for the given request. /// bool IsMatch(Request request); } }