/* * Copyright (c) 2018 ETH Zürich, Educational Development and Technology (LET) * * 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 System; using SafeExamBrowser.Contracts.Configuration.Settings; namespace SafeExamBrowser.Contracts.Communication { public interface IServiceProxy : ICommunicationProxy { /// /// Instructs the proxy to ignore all operations or simulate a connection, where applicable. To be set e.g. when the service /// policy is optional and the service is not available. /// bool Ignore { set; } /// /// Instructs the service to start a new session according to the given parameters. /// /// If the communication failed. void StartSession(Guid sessionId, Settings settings); /// /// Instructs the service to stop the specified session. /// /// If the communication failed. void StopSession(Guid sessionId); } }