mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 19:10:23 -10:00
* System.Web/HttpApplication.cs: events were not being initialized. * System.Web.Caching/CacheDefinitions.cs: fixed a couple of enums. * System.Web.Caching/CacheDependency.cs: the class is sealed. * System.Web.UI.WebControls/BaseValidator.cs: it works now. * System.Web.UI.WebControls/DataGridColumn.cs: added attribute and made it abstract. * System.Web.UI.WebControls/RequiredFieldValidator.cs: fixed return value in EvaluateIsValid. svn path=/trunk/mcs/; revision=6225
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 sealed 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();
|
|
}
|
|
}
|
|
}
|