/*
* Copyright (c) 2019 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 SafeExamBrowser.Applications.Contracts.Events;
namespace SafeExamBrowser.Applications.Contracts
{
///
/// Controls the lifetime and functionality of an application.
///
public interface IApplication
{
///
/// Provides information about the application.
///
ApplicationInfo Info { get; }
///
/// Fired when a new has started.
///
event InstanceStartedEventHandler InstanceStarted;
///
/// Performs any initialization work, if necessary.
///
void Initialize();
///
/// Starts the execution of the application.
///
void Start();
///
/// Performs any termination work, e.g. releasing of used resources.
///
void Terminate();
}
}