private void OnEndRequest(object sender, EventArgs eventArgs)
{
if (!Enabled)
{
return;
}
var DataContext = ((HttpApplication)sender).Context.Items[DataContextkey] as IDataContext;
if (DataContext != null)
{
DataContext.Dispose();
}
((HttpApplication)sender).Context.Items.Remove(DataContextkey);
}