FogBugz Plugin Interfaces > Request Cleanup > IPluginRequestCleanup
Introduction
This article will demonstrate a simple FogBugz plugin that implements the IPluginRequestCleanup interface contained in the FogCreek.FogBugz.Plugins.Interfaces class library. RequestCleanup() is called at the end of every FogBugz request (page load, AJAX request, etc).
Functionality
This plugin will increment a total hit count, cHits which is stored in its plugin Key-Value Table. The Plugin page, linked from the Admin Menu shows the current request hit count.
Compile and Install It On Your Own
Download the source file: IPluginRequestCleanup_Example.cs
Then follow these instructions to create a functioning plugin assembly: Compiling and Installing a FogBugz Plugin