// // Copyright (C) 2004-2020 by Autodesk, Inc. // // This library is free software; you can redistribute it and/or // modify it under the terms of version 2.1 of the GNU Lesser // General Public License as published by the Free Software Foundation. // // This library 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 // Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public // License along with this library; if not, write to the Free Software // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // namespace OSGeo.MapGuide { /// /// This is the entry point of the MapGuide API /// public class MapGuideApi { static MapGuideApi() { } /// /// Initializes the MapGuide Web Tier APIs. You must call this method before using any other class or method /// in the MapGuide API /// /// The path to the web tier configuration file /// Subsequent calls do nothing and return immediately public static void MgInitializeWebTier(string configFile) { WebUnmanagedApiPINVOKE.MgInitializeWebTier(configFile); // The above call is a direct P/Invoke call and not a wrapper call, so we have to make // sure to throw any pending exception if the native side stashed a pending exception if (WebUnmanagedApiPINVOKE.SWIGPendingException.Pending) throw WebUnmanagedApiPINVOKE.SWIGPendingException.Retrieve(); } } }