本文整理汇总了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);
}
}
示例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 );
}
}