当前位置: 首页>>代码示例>>C#>>正文


C# LogController.PurgeLogBuffer方法代码示例

本文整理汇总了C#中DotNetNuke.Services.Log.EventLog.LogController.PurgeLogBuffer方法的典型用法代码示例。如果您正苦于以下问题:C# LogController.PurgeLogBuffer方法的具体用法?C# LogController.PurgeLogBuffer怎么用?C# LogController.PurgeLogBuffer使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在DotNetNuke.Services.Log.EventLog.LogController的用法示例。


在下文中一共展示了LogController.PurgeLogBuffer方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: OnLoad

        /// -----------------------------------------------------------------------------
        /// <summary>
        /// The Page_Load runs when the page loads
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        /// <remarks>
        /// </remarks>
        /// <history>
        ///   [cnurse] 17/9/2004  Updated for localization, Help and 508
        /// </history>
        /// -----------------------------------------------------------------------------
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            try
            {
                // If this is the first visit to the page, populate the site data
                if (Page.IsPostBack == false)
                {
                    var logController = new LogController();
                    logController.PurgeLogBuffer();
                    if (Request.QueryString["PageRecords"] != null)
                    {
                        ddlRecordsPerPage.SelectedValue = Request.QueryString["PageRecords"];
                    }
                    BindPortalDropDown();
                    BindLogTypeDropDown();
                    BindData();
                }
            }
            catch (Exception exc) //Module failed to load
            {
                Exceptions.ProcessModuleLoadException(this, exc);
            }
        }
开发者ID:rcedev,项目名称:evans-software-solutions,代码行数:37,代码来源:LogViewer.ascx.cs

示例2: Page_Load

        /// <summary>
        /// The Page_Load runs when the page loads
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        /// <remarks>
        /// </remarks>
        /// <history>
        ///   [cnurse] 17/9/2004  Updated for localization, Help and 508
        /// </history>
        protected void Page_Load( Object sender, EventArgs e )
        {
            try
            {
                

                // If this is the first visit to the page, populate the site data
                if( Page.IsPostBack == false )
                {
                    LogController objLC = new LogController();
                    objLC.PurgeLogBuffer();

                    if( Request.QueryString["CurrentPage"] != null )
                    {
                        PageIndex = Convert.ToInt32( Request.QueryString["CurrentPage"] );
                    }
                    else
                    {
                        PageIndex = 1;
                    }

                    if( Request.QueryString["PageRecords"] != null )
                    {
                        ddlRecordsPerPage.SelectedValue = Request.QueryString["PageRecords"];
                    }

                    BindPortalDropDown();
                    BindLogTypeDropDown();
                    BindData();
                }
            }
            catch( Exception exc ) //Module failed to load
            {
                Exceptions.ProcessModuleLoadException( this, exc );
            }
        }
开发者ID:huayang912,项目名称:cs-dotnetnuke,代码行数:46,代码来源:LogViewer.ascx.cs


注:本文中的DotNetNuke.Services.Log.EventLog.LogController.PurgeLogBuffer方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。