Created
March 21, 2013 12:53
-
-
Save toburger/5212796 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
namespace Intranet | |
{ | |
public class GlobalContainer | |
{ | |
public static SmgIntranetContainer Instance | |
{ | |
get | |
{ | |
if (!HttpContext.Current.Items.Contains("SmgIntranetContainer")) | |
{ | |
HttpContext.Current.Items.Add("SmgIntranetContainer", new SmgIntranetContainer()); | |
} | |
return HttpContext.Current.Items["SmgIntranetContainer"] as SmgIntranetContainer; | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment