2018-01-24 12:34:32 +01:00
|
|
|
|
/*
|
2024-03-05 18:37:42 +01:00
|
|
|
|
* Copyright (c) 2024 ETH Zürich, IT Services
|
2018-01-24 12:34:32 +01:00
|
|
|
|
*
|
|
|
|
|
* 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/.
|
|
|
|
|
*/
|
|
|
|
|
|
2018-02-08 13:32:48 +01:00
|
|
|
|
using System;
|
2019-08-30 09:55:26 +02:00
|
|
|
|
using SafeExamBrowser.Configuration.Contracts;
|
2018-02-08 13:32:48 +01:00
|
|
|
|
|
2019-08-30 09:55:26 +02:00
|
|
|
|
namespace SafeExamBrowser.Communication.Contracts.Proxies
|
2018-01-24 12:34:32 +01:00
|
|
|
|
{
|
2018-03-06 11:38:12 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Defines the functionality for a proxy to the communication host of the service application component.
|
|
|
|
|
/// </summary>
|
2018-02-14 15:26:05 +01:00
|
|
|
|
public interface IServiceProxy : ICommunicationProxy
|
2018-01-24 12:34:32 +01:00
|
|
|
|
{
|
2019-07-04 09:12:28 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Instructs the service to start a system configuration update.
|
|
|
|
|
/// </summary>
|
|
|
|
|
CommunicationResult RunSystemConfigurationUpdate();
|
|
|
|
|
|
2018-02-08 13:32:48 +01:00
|
|
|
|
/// <summary>
|
2019-06-11 09:53:33 +02:00
|
|
|
|
/// Instructs the service to start a new session according to the given configuration.
|
2018-02-08 13:32:48 +01:00
|
|
|
|
/// </summary>
|
2019-06-11 09:53:33 +02:00
|
|
|
|
CommunicationResult StartSession(ServiceConfiguration configuration);
|
2018-02-08 13:32:48 +01:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Instructs the service to stop the specified session.
|
|
|
|
|
/// </summary>
|
2018-08-10 13:23:24 +02:00
|
|
|
|
CommunicationResult StopSession(Guid sessionId);
|
2018-01-24 12:34:32 +01:00
|
|
|
|
}
|
|
|
|
|
}
|