protected override void OnUnload(EventArgs e) { base.OnUnload(e); Adapter.OnUnload(e); #if ICECAP IceCapAPI.StopProfile(IceCapAPI.PROFILE_THREADLEVEL, IceCapAPI.PROFILE_CURRENTID); #endif }
///////////////////////////////////////////////////////////////////////// // BEGIN ADAPTER PLUMBING ///////////////////////////////////////////////////////////////////////// protected override void OnInit(EventArgs e) { #if ICECAP IceCapAPI.StartProfile(IceCapAPI.PROFILE_THREADLEVEL, IceCapAPI.PROFILE_CURRENTID); #endif OnDeviceCustomize(new EventArgs()); // Accessing Request throws exception at designtime if (!DesignMode && Request.Headers["__vs_debug"] != null) { _debugMode = true; } // ASP.NET requires the following method to be called to have // ViewState calculated for the page. RegisterViewStateHandler(); Adapter.OnInit(e); base.OnInit(e); }