Files
linux-packaging-mono/mcs/class/System.Web/Test/mainsoft/NunitWeb/NunitWeb/PageDelegates.cs
Jo Shields 3c1f479b9d Imported Upstream version 4.0.0~alpha1
Former-commit-id: 806294f5ded97629b74c85c09952f2a74fe182d9
2015-04-07 09:35:12 +01:00

86 lines
2.5 KiB
C#

using System;
using System.Web;
using System.Web.UI;
namespace MonoTests.SystemWeb.Framework
{
/// <summary>
/// Delegates to a user callback invoked during different
/// <see cref="System.Web.UI.Page"/> lifecycle events and passing the page. Used
/// with <see cref="PageDelegate"/>.
/// </summary>
/// <param name="page"></param>
/// <seealso cref="System.Web.UI.Page"/>
/// <seealso cref="PageDelegate"/>
public delegate void PageDelegate (Page page);
/// <summary>
/// This structure holds callbacks for all page events, callback for
/// <see cref="IHttpHandler.ProcessRequest"/> and user data
/// passed to these callbacks.
/// </summary>
[Serializable]
public struct PageDelegates
{
/// <summary>
/// <see cref="Page.LoadComplete"/> event callback.
/// </summary>
public PageDelegate LoadComplete;
/// <summary>
/// <see cref="Page.PreInit"/> event callback.
/// </summary>
public PageDelegate PreInit;
/// <summary>
/// <see cref="Page.PreLoad"/> event callback.
/// </summary>
public PageDelegate PreLoad;
/// <summary>
/// <see cref="Page.PreRenderComplete"/> event callback.
/// </summary>
public PageDelegate PreRenderComplete;
/// <summary>
/// <see cref="Page.InitComplete"/> event callback.
/// </summary>
public PageDelegate InitComplete;
/// <summary>
/// <see cref="Page.SaveStateComplete"/> event callback.
/// </summary>
public PageDelegate SaveStateComplete;
/// <summary>
/// <see cref="TemplateControl.CommitTransaction"/> event callback.
/// </summary>
public PageDelegate CommitTransaction;
/// <summary>
/// <see cref="TemplateControl.AbortTransaction"/> event callback.
/// </summary>
public PageDelegate AbortTransaction;
/// <summary>
/// <see cref="TemplateControl.Error"/> event callback.
/// </summary>
public PageDelegate Error;
/// <summary>
/// <see cref="Control.Disposed"/> event callback.
/// </summary>
public PageDelegate Disposed;
/// <summary>
/// <see cref="Control.DataBinding"/> event callback.
/// </summary>
public PageDelegate DataBinding;
/// <summary>
/// <see cref="Control.Init"/> event callback.
/// </summary>
public PageDelegate Init;
/// <summary>
/// <see cref="Control.Load"/> event callback.
/// </summary>
public PageDelegate Load;
/// <summary>
/// <see cref="Control.PreRender"/> event callback.
/// </summary>
public PageDelegate PreRender;
/// <summary>
/// <see cref="Control.Unload"/> event callback.
/// </summary>
public PageDelegate Unload;
}
}