// // openmapi.org - NMapi C# Mapi API - Request.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; using NMapi; namespace NMapi.Server { public sealed class Request { private ProxySession session; private RemoteCall remoteCall; private int totalBytes; /// /// The ProxySession that represents the context of this request /// public ProxySession ProxySession { get { return session; } } /// /// Gets the name of the rpc call /// public RemoteCall RemoteCall { get { return remoteCall; } } /// /// Gets the number of bytes in the request. /// public int TotalBytes { get { return totalBytes; } } public Request (ProxySession session, RemoteCall call, int totalBytes) { this.session = session; this.remoteCall = call; this.totalBytes = totalBytes; } } }