// // openmapi.org - NMapi C# Mapi API - IProxySession.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 { /// /// /// public interface IProxySession { /// /// The ID of the connection. This is globally unique. /// string Id { get; set; } /// /// The DateTime at the time the the Session was created. /// DateTime InitDate { get; } /// /// The name of the protcol. Usually the form is "openmapi/somename". /// string Protocol { get; } /// /// A string describing the source of the connection, e.g. /// a hostname or an ip address (or a jabber jid, etc.). /// string Source { get; } /// /// /// string ClientName { get; } /// /// /// bool IsAuthenticated { get; } /// /// /// bool IsLocal { get; } /// /// True if the proxy should be able to attach a MapiShell /// to the running connection. /// bool AllowShellAttachment { get; } /// /// True if the connection is considered to be secure. /// bool IsSecure { get; } /// /// True if the connection is persistent; Tcp would be an /// example of this. HTTP is a counter-example. /// bool IsPersistent { get; } /// /// True if the session keeps track of a session key itself to /// map calls on the same instance to the same server-side object. /// bool RequiresSessionKey { get; } } }