Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

33 lines (26 sloc) 0.782 kb
using System.Web;
using Glimpse.Core.Extensibility;
namespace Glimpse.AspNet
{
public class HttpApplicationStateBaseDataStoreAdapter : IDataStore
{
public HttpApplicationStateBaseDataStoreAdapter(HttpApplicationStateBase applicationState)
{
ApplicationState = applicationState;
}
internal HttpApplicationStateBase ApplicationState { get; set; }
public object Get(string key)
{
return ApplicationState.Get(key);
}
public void Set(string key, object value)
{
ApplicationState.Set(key, value);
}
public bool Contains(string key)
{
var result = ApplicationState.Get(key);
return result != null;
}
}
}
Jump to Line
Something went wrong with that request. Please try again.