// // openmapi.org - NMapi C# Mapi API - ISessionManager.cs // // Copyright 2008 Topalis AG // // Author: Johannes Roith // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as // published by the Free Software Foundation, either version 3 of the // License, or (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU Affero General Public License for more details. // using System; namespace NMapi.Server.ICalls { /// /// /// public interface ISessionManager { /// /// Called when a session is about to unregister. /// event EventHandler SessionUnregistering; /// /// Called when a session has been unregistered. /// event EventHandler SessionUnregistered; /// /// Called when a session is about to register. /// event EventHandler SessionRegistering; /// /// Called when a session has been registered. /// event EventHandler SessionRegistered; /// /// /// void RegisterSession (IProxySession session); /// /// Unregisters a session. /// void UnregisterSession (IProxySession session); /// /// Registers a session. /// void TryUnregisterSession (IProxySession session); /// /// Gets a read-only list of the current proxy Sessions. /// IProxySession[] CurrentSessions { get; } } }