Cleans up unused files with cached data.

Namespace:  C1.Web.Data
Assembly:  C1.Web.Data.2 (in C1.Web.Data.2.dll)

Syntax

C#
public static void DeleteFiles(
	HttpApplication applicationInstance
)
Visual Basic (Declaration)
Public Shared Sub DeleteFiles ( _
	applicationInstance As HttpApplication _
)

Parameters

applicationInstance
Type: System.Web..::..HttpApplication
HttpApplication object representing current application.

Remarks

Call this method from the Session_End event in your Global.aspx file, see Using the Session Cache In Enterprise Edition, Using the Session Cache In Express Edition. The applicationInstance is set to the object of the HttpApplication class represented by Global.aspx ('this' in C#, Me in VB).

See Also