Skip to content

Instantly share code, notes, and snippets.

@wayne-o
Created October 16, 2012 12:29
Show Gist options
  • Save wayne-o/3898968 to your computer and use it in GitHub Desktop.
Save wayne-o/3898968 to your computer and use it in GitHub Desktop.
BrowserSession
public BrowserSession BrowserSession
{
get
{
if (FeatureContext.Current.ContainsKey("BrowserSession"))
{
return (BrowserSession)FeatureContext.Current["BrowserSession"];
}
var sessionConfiguration = new SessionConfiguration
{
Timeout = TimeSpan.FromMilliseconds(1000)
};
var browserSession = new BrowserSession(sessionConfiguration);
FeatureContext.Current.Add("BrowserSession", browserSession);
return browserSession;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment