mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 01:41:17 -10:00
* System.Web.Caching/CacheDependency.cs: fixed a couple of typos and don't throw NotImplementedException in constructors. * System.Web.UI/Control.cs: (MapPathSecure): until security is implemented, return the same path received as argument. (RenderControl): call OnPreRender before rendering the control. So AdRotator can read its configuration file.Is there any other place where this should be done? * System.Web.UI/HtmlTextWriter.cs: (AddAttribute): fixed. Now it really stores attributes. (RenderBeginTag): fixed a couple of bugs (little ones but hard to find). * System.Web.UI.WebControls/AdRotator.cs: GetData does not work as it should, but now it returns useful data (only the first ad in the file). Set the NavigateUrl property in the hyperlink if available. * System.Web.UI.WebControls/HyperLink.cs: fixed constructor and a couple of stack overflows. * System.Web.UI.WebControls/Image.cs: added an attribute and fixed stack overflow. * System.Web.UI.WebControls/WebControl.cs: (RenderBeginTag): fixed. (TagName): don't call Enum.IsDefined twice. svn path=/trunk/mcs/; revision=5230
96 lines
1.6 KiB
C#
96 lines
1.6 KiB
C#
//
|
|
// System.Web.Caching
|
|
//
|
|
// Author:
|
|
// Patrik Torstensson ([email protected])
|
|
//
|
|
// (C) Copyright Patrik Torstensson, 2001
|
|
//
|
|
namespace System.Web.Caching
|
|
{
|
|
/// <summary>
|
|
/// Class to handle cache dependency, right now this class is only a mookup
|
|
/// </summary>
|
|
public class CacheDependency : System.IDisposable
|
|
{
|
|
private bool _boolDisposed;
|
|
|
|
public CacheDependency()
|
|
{
|
|
_boolDisposed = false;
|
|
}
|
|
|
|
/// <remarks>
|
|
/// Added by [email protected]
|
|
/// </remarks>
|
|
[MonoTODO("Constructor")]
|
|
public CacheDependency(string filename)
|
|
{
|
|
}
|
|
|
|
/// <remarks>
|
|
/// Added by [email protected]
|
|
/// </remarks>
|
|
[MonoTODO("Constructor")]
|
|
public CacheDependency(string[] filenames, string[] cachekeys)
|
|
{
|
|
}
|
|
|
|
public delegate void CacheDependencyCallback(CacheDependency objDependency);
|
|
|
|
public event CacheDependencyCallback Changed;
|
|
|
|
public void OnChanged()
|
|
{
|
|
if (_boolDisposed)
|
|
{
|
|
throw new System.ObjectDisposedException("System.Web.CacheDependency");
|
|
}
|
|
|
|
if (Changed != null)
|
|
{
|
|
Changed(this);
|
|
}
|
|
}
|
|
|
|
public bool IsDisposed
|
|
{
|
|
get
|
|
{
|
|
return _boolDisposed;
|
|
}
|
|
}
|
|
|
|
public bool HasEvents
|
|
{
|
|
get
|
|
{
|
|
if (_boolDisposed)
|
|
{
|
|
throw new System.ObjectDisposedException("System.Web.CacheDependency");
|
|
}
|
|
|
|
if (Changed != null)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
return false;
|
|
}
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
_boolDisposed = true;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Used in testing.
|
|
/// </summary>
|
|
public void Signal()
|
|
{
|
|
OnChanged();
|
|
}
|
|
}
|
|
}
|