Commit Graph
34 Commits
Author SHA1 Message Date
Marek Habersack 73c3bfba56 2010-02-03 Marek Habersack <[email protected]>
* AssemblyInfo.cs: added back InternalsVisibleTo for the test
        assembly - it's needed to access CacheItemPriorityQueue

2010-02-03  Marek Habersack  <[email protected]>

        * OutputCache.cs: DefaultProviderName checks if there was any
        provider configured and, if not, returns a built-in provider's
        name.

        * SqlCacheDependencyAdmin.cs: added

        * OutputCacheProviderCollection.cs: added

        * OutputCacheProvider.cs: added

        * OutputCacheModule.cs: uses the 4.0 extensible output cache
        provider model now (also internally in the 2.0 profile)
        OutputCacheProvider is retrieved on every request using
        HttpApplication.GetOutputCacheProviderName (4.0+). In the 2.0
        profile an instance of InMemoryOutputCacheProvider is always
        returned.

        * InMemoryOutputCacheProvider.cs: default output cache provider
        for ASP.NET 4.0, also used internally in the  2.0 profile.

        * CachedVaryBy.cs: made the generated key shorter

        * CacheItemPriorityQueueDebug.cs: debugging support for
        CacheItemPriorityQueue. Most of the code is compiled only when the
        DEBUG macro is defined. Debugging support includes recording of
        the queue operations sequence which is output to an XML file on
        appdomain shutdown. The recorded sequence files can be used to
        generate NUnit test cases for the priority queue (see
        ../Test/tools/README)

        * CacheItemPriorityQueue.cs: rewritten using an array based heap
        instead of a binary tree based one - implementation is simpler,
        faster and more elegant. Heap is initially 32 entries long and
        its size is doubled every time it fills up. After reaching a
        threshold (8192 entries currently) it is shrunk to the number of
        items + 1/3 of item count in order to preserve memory.

        * CacheItem.cs: added a Guid field to easier distinguish items
        (mostly for debugging purposes)

        * CacheDependency.cs: minor performance improvements

        * Cache.cs: better handling of timer periods

2010-02-03  Marek Habersack  <[email protected]>

        * HttpApplication.cs: GetOutputCacheProviderName returns the value
        of OutputCache.DefaultProviderName

        * HttpRuntime.cs: internal cache is used to hold the dependencies
        now.

2010-02-03  Marek Habersack  <[email protected]>

        * CacheItemPriorityQueueTest_generated.cs: added

        * CacheItemPriorityQueueTest.cs: added

2010-02-04  Marek Habersack  <[email protected]>

        * Helpers.cs: added a helper method for checking of HTML mentions
        any .NET exceptions.

2010-02-03  Marek Habersack  <[email protected]>

        * Makefile: added targets to compile cache priority queue tests
        generator and to generate the tests themselves

svn path=/trunk/mcs/; revision=150855
2010-02-04 13:53:55 +00:00
Marek Habersack b315e2df14 2010-01-21 Marek Habersack <[email protected]>
* FileResponseElementTest.cs, HeaderElementTest.cs,
	MemoryResponseElementTest.cs, SubstitutionResponseElementTest.cs:
	added

2010-01-21  Marek Habersack  <[email protected]>

	* DatabaseNotEnabledForNotificationException.cs, OutputCache.cs,
	FileResponseElement.cs, HeaderElement.cs, IOutputCacheEntry.cs,
	MemoryResponseElement.cs, OutputCacheProvider.cs,
	ResponseElement.cs, OutputCacheProviderCollection.cs,
	SubstitutionResponseElement.cs,
	TableNotEnabledForNotificationException.cs: added

	* CacheDependency.cs: default constructor is protected in 4.0

svn path=/trunk/mcs/; revision=150025
2010-01-21 22:30:21 +00:00
Marek Habersack b40844116b More 1.1 code and NET_2_0 ifdefs removed
svn path=/trunk/mcs/; revision=145319
2009-11-03 20:19:37 +00:00
Marek Habersack f345ffeea2 2008-10-21 Marek Habersack <[email protected]>
* CapabilitiesChecksum.cs: implement Hex and MapToHex more efficiently.

2008-10-21  Marek Habersack  <[email protected]>

	* OutputCacheModule.cs: seal the class.
	Made OnRawResponseRemoved a static method.

	* CachedVaryBy.cs: seal the class.
	Use portable line terminators instead of literal '\n'.

	* Cache.cs: seal the CacheItem and CacheItemEnumerator classes.

	* CacheDependency.cs: dispose the associated dependency in the
	DependencyDispose method.

	* CachedRawResponse.cs: seal the class

2008-10-21  Marek Habersack  <[email protected]>

	* CapabilitiesLoader.cs: seal BrowserData.
	Seal CapabilitiesLoader.
	Do not lock on typeof (CapabilitiesLoader) in GetCapabilities ().

svn path=/trunk/mcs/; revision=116583
2008-10-21 01:08:23 +00:00
Marek Habersack 0907975508 2008-05-30 Marek Habersack <[email protected]>
* BaseDataBoundControl.cs, ChangePassword.cs, CustomValidator.cs,
	DataControlFieldCollection.cs, DataControlField.cs,
	PasswordRecovery.cs, PagerSettings.cs: do not use synthetized
	event accessors (to avoid locks).

2008-05-30  Marek Habersack  <[email protected]>

	* AnonymousIdentificationModule.cs, FormsAuthenticationModule.cs,
	DefaultAuthenticationModule.cs, MembershipProvider.cs,
	WindowsAuthenticationModule.cs, PassportAuthenticationModule.cs,
	RoleManagerModule.cs: do not use synthetized event accessors (to
	avoid locks).

2008-05-30  Marek Habersack  <[email protected]>

	* HttpApplication.cs, HttpCachePolicy.cs, SiteMapProvider.cs,
	TraceContext.cs: do not use synthetized event accessors (to avoid
	locks).

2008-05-30  Marek Habersack  <[email protected]>

	* SessionStateModule.cs: do not use synthetized event accessors
	(to avoid locks).

2008-05-30  Marek Habersack  <[email protected]>

	* ProfileModule.cs: do not use synthetized event accessors (to
	avoid locks).

2008-05-30  Marek Habersack  <[email protected]>

	* SessionStateModule.cs: do not use synthetized event accessors
	(to avoid locks).

2008-05-30  Marek Habersack  <[email protected]>

	* DataBindingCollection.cs, ExpressionBindingCollection.cs: do not
	use synthetized event accessors (to avoid locks).

2008-05-30  Marek Habersack  <[email protected]>

	* ClientBuildManager.cs: do not use synthetized event accessors
	(to avoid locks).

2008-05-30  Marek Habersack  <[email protected]>

	* CacheDependency.cs: do not use synthetized event accessors (to
	avoid locks).


svn path=/trunk/mcs/; revision=104569
2008-05-30 22:20:14 +00:00
Juraj Skripsky 6486fa984c 2007-12-19 Juraj Skripsky <[email protected]>
* Cache.cs: Replace periodic timer (60s) with per-cache-item expiration
	timers.

2007-12-19  Juraj Skripsky <[email protected]>

	* HttpContext.cs, HttpApplication.cs: Move timeout tracking from
	TimeoutManager into HttpContext. Replace periodic timeout checks with
	separate per-context timeout timers.  
	* HttpRuntime.cs: remove TimeoutManager.

2007-12-19  Juraj Skripsky  <[email protected]>

	* System.Web.dll.sources: removed TimeoutManager.cs


svn path=/trunk/mcs/; revision=91612
2007-12-19 11:27:00 +00:00
Marek Habersack f0842083bc 2007-08-17 Marek Habersack <[email protected]>
* CacheDependency.cs: use DependencyChanged as a list of events.
	OnChanged now calls OnDependencyChanged, to notify
	AggregateCacheDependency that it has changed. Fixes bug #82419.

2007-08-17  Marek Habersack  <[email protected]>

	* AggregateCacheDependencyTest.cs: dependency expiration
	notification works correctly now.

svn path=/trunk/mcs/; revision=84270
2007-08-17 12:06:22 +00:00
Marek Habersack 4630c73ac4 Do not override DependencyDispose, as it would break the public API of the class
svn path=/trunk/mcs/; revision=84064
2007-08-14 12:28:09 +00:00
Igor Zelmanovich 450ce08119 2007-05-03 Igor Zelmanovich <[email protected]>
* BrowserCapabilities.cs:
	added missing API.	

2007-05-03 Igor Zelmanovich <[email protected]>

	* AggregateCacheDependency.cs:
	* CacheDependency.cs:	
	added missing API.	

2007-05-03 Igor Zelmanovich <[email protected]>

	* AttributeCollection.cs:
	* DataBindingHandlerAttribute.cs:
	* HtmlTextWriter.cs:
	* PartialCachingControl.cs:
	* TemplateControl.cs:
	* TemplateControl.jvm.cs:
	* XPathBinder.cs:						
	added missing API.	

2007-05-03 Igor Zelmanovich <[email protected]>

	* ControlPropertyNameConverter.css:
	* FontUnitConverter.cs:
	* UnitConverter.cs:
	* ValidatedControlConverter.cs:			
	added missing API.	


svn path=/trunk/mcs/; revision=76622
2007-05-03 14:29:09 +00:00
Marek Habersack 6b2025f651 2007-04-10 Marek Habersack <[email protected]>
* CacheDependency.cs: add the NotifyFilters.Size to the
	watcher flags, so that we watch for modifications to a file when
	using Linux inotify.

2007-04-10  Marek Habersack  <[email protected]>

	* XmlSiteMapProvider.cs: add the NotifyFilters.Size to the
	watcher flags, so that we watch for modifications to a file when
	using Linux inotify.

	* HttpApplicationFactory.cs: add the NotifyFilters.Size to the
	watcher flags, so that we watch for modifications to a file when
	using Linux inotify.
	App_Code, App_Browsers and App_GlobalResources watchers must watch
	for events with the '*' mask so that they can notice events
	related to subdirectory creation/deletion.
	Watch for subdirectory events with the App_Code watcher.

2007-04-10  Marek Habersack  <[email protected]>

	* WebConfigurationSettings.cs: add NotifyFilter.Size to the
	watcher notification filter to enable file modification events
	with Linux inotify.

svn path=/trunk/mcs/; revision=75568
2007-04-10 10:42:02 +00:00
Konstantin Triger 0930bf4f4f Implement FileSystemWatcher stub and remove redundand TARGET_JVM ifdefs
svn path=/trunk/mcs/; revision=71414
2007-01-21 09:45:11 +00:00
Konstantin Triger 4b3c4a07c7 add TARGET_JVM ifdef
svn path=/trunk/mcs/; revision=67919
2006-11-15 13:17:43 +00:00
Gonzalo Paniagua Javier a5af58e42a 2006-11-14 Marek Habersack <[email protected]>
* Cache.cs:
	* CacheDependency.cs:
	* AggregateCacheDependency.cs: implement this one.


svn path=/trunk/mcs/; revision=67862
2006-11-14 17:44:00 +00:00
Gonzalo Paniagua Javier 89f3305910 2006-11-14 Gonzalo Paniagua Javier <[email protected]>
* CacheDependency.cs:
	* AggregateCacheDependency.cs: implement this one.


svn path=/trunk/mcs/; revision=67856
2006-11-14 17:35:27 +00:00
Andrew Skiba 9d6b8f8be9 ifdef TARGET_JVM
svn path=/trunk/mcs/; revision=65234
2006-09-11 15:07:26 +00:00
Gonzalo Paniagua Javier 0d5ff18ed0 2006-08-03 Gonzalo Paniagua Javier <[email protected]>
* CacheDependency.cs:
	* Cache.cs: check dependencies on other cache keys. Fixes bug #79002.


svn path=/trunk/mcs/; revision=63303
2006-08-03 15:50:47 +00:00
Sebastien Pouliot 96205ff6c0 2005-09-02 Sebastien Pouliot <[email protected]>
* Cache.cs: Added security permissions with Minimal level for
	AspNetHostingPermissionLevel (only LinkDemand as the class is sealed).
	* CacheDependency.cs: : Added security permissions with Minimal level 
	for AspNetHostingPermissionLevel (note class is sealed only in 1.x).



svn path=/trunk/mcs/; revision=49342
2005-09-02 13:29:54 +00:00
Eyal Alalouf b4cf914e5a TARGET_J2EE/JVM fixes
svn path=/trunk/mcs/; revision=49261
2005-09-01 11:54:56 +00:00
Lluis Sanchez 96d5d0dd77 2005-07-15 Lluis Sanchez Gual <[email protected]>
* Cache.cs: New implementation.
	* CacheDependency.cs: New implementation.

2005-08-26  Lluis Sanchez Gual  <[email protected]> 

	* CssStyleCollection.cs: Added some spacing.
	* HtmlTextWriter.cs: Made style and attribute tables static.
	  Implemented StaticGetStyleName().

2005-08-26  Lluis Sanchez Gual  <[email protected]> 

	* Style.cs: Implemented FillStyleAttributes, GetStyleAttributes and
	SetDirty.

svn path=/trunk/mcs/; revision=48924
2005-08-26 22:29:51 +00:00
Miguel de Icaza 4c004f75ed Remove
svn path=/trunk/mcs/; revision=48909
2005-08-26 20:38:24 +00:00
Ilya Kharmatsky a9392bc994 svn path=/trunk/mcs/; revision=46207 2005-06-19 09:24:53 +00:00
Gonzalo Paniagua Javier 495efe763d 2005-04-20 Gonzalo Paniagua Javier <[email protected]>
* CacheDependency.cs: remove warnings.


svn path=/trunk/mcs/; revision=43359
2005-04-20 22:17:06 +00:00
Duncan Mak d1c09fcc67 Add licensing info
svn path=/trunk/mcs/; revision=30345
2004-06-24 20:59:43 +00:00
Patrik Torstensson a596fe4999 2004-05-27 Patrik Torstensson <[email protected]>
* CacheEntry.cs,CacheExpires.cs,ExpiresBucket.cs,
	  Cache.cs : Fixed deadlock issues, fixed
	  items not correctly being flushed, fixed update
	  of item when expiration has been updated more
	  than 1 min (placed in wrong bucket),
	  fixed deadlock during cache callback when item
	  is removed due to expiriation.

	  Rewrite of locking handling in Cache class, leading
	  to better performance and less bugs.

	  This rewrite is due to a number of bugs found
	  in the output caching during load (leading to memory
	  leaks and deadlocks)

svn path=/trunk/mcs/; revision=28254
2004-05-27 12:15:13 +00:00
Jackson Harper 80f98b141b * Cache.cs: Close entries that are removed.
* CacheDependency.cs: Use FileSystemWatcher instead of custom
	Watcher for file dependencies.
	* OutputCacheModule.cs: Make the varyby objects dependent on the
	cached page.

svn path=/trunk/mcs/; revision=22924
2004-02-09 22:00:05 +00:00
Jackson Harper 382c67e69b * CacheDependency.cs: Handle cache keys that have not been added
to the cache yet.

svn path=/trunk/mcs/; revision=22809
2004-02-05 20:54:22 +00:00
Jackson Harper 8f2d626453 * CacheDependency.cs: Copy all the entries into the entries array,
set on removed callback for items that we are dependent on.

svn path=/trunk/mcs/; revision=21691
2004-01-05 01:34:03 +00:00
Gonzalo Paniagua Javier 826ea1867c 2003-04-09 Gonzalo Paniagua Javier <[email protected]>
* list: added Watcher.cs
	* System.Web.Caching/CacheDependency.cs:
	* System.Web.Caching/CacheEntry.cs:
	* System.Web.Caching/Watcher.cs: added a FileSystemWatcher-like class for dependency
	checking.

svn path=/trunk/mcs/; revision=13436
2003-04-09 05:12:44 +00:00
Gonzalo Paniagua Javier 46059274db 2003-03-13 Gonzalo Paniagua Javier <[email protected]>
* System.Web/HttpRuntime.cs: Cache no longer have a Dispose method.

	* System.Web/HttpServerUtility.cs: removed MonoTODO.

	* System.Web.Caching/Cache.cs:
	* System.Web.Caching/CacheDefinitions.cs:
	* System.Web.Caching/CacheDependency.cs:
	* System.Web.Caching/CacheEntry.cs:
	* System.Web.Caching/CacheExpires.cs:
	* System.Web.Caching/ExpiresBuckets.cs: reformatted, make class status
	page happier. Does not work yet (wait for the next patch).

	* System.Web.SessionState/HttpSessionState.cs: implemented CodePage.

	* System.Web.SessionState/SessionStateModule.cs: initial stuff to make
	it work.

svn path=/trunk/mcs/; revision=12480
2003-03-13 19:44:44 +00:00
Gonzalo Paniagua Javier 99db2d8223 2002-07-28 Gonzalo Paniagua Javier <[email protected]>
* 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
2002-07-28 18:37:57 +00:00
Gonzalo Paniagua Javier b79e2220a3 2002-06-11 Gonzalo Paniagua Javier <[email protected]>
* 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
2002-06-11 19:37:03 +00:00
Gaurav Vaish d88fdc72e5 2002-01-07 Gaurav Vaish <[email protected]>
* <All>.cs  -- A lot of decoration. Gosh! saved, not too many..

svn path=/trunk/mcs/; revision=1887
2002-01-07 02:37:35 +00:00
Gaurav Vaish 01172da4be 2001-12-21 Gaurav Vaish <[email protected]>
* System.Web/*.cs
* System.Web.Caching/*.cs
* System.Web.UI/*.cs
* System.Web.Utils/*.cs
* System.Web.UI.WebControls/*.cs

  -- The ISP was down yesterday and today morning. So many files. See changelog for more details.

svn path=/trunk/mcs/; revision=1666
2001-12-21 08:42:28 +00:00
Miguel de Icaza 0a99fb8a57 Wooohooo! System.Web.Cache from Patrick!
svn path=/trunk/mcs/; revision=276
2001-07-20 17:48:40 +00:00