public class GloballyAccessibleClass
{
private GloballyAccessibleClass() { }
public static GloballyAccessibleClass Instance
{
get
{
IDictionary items = HttpContext.Current.Items;
if (!items.Contains("PaperSave"))
{
items["PaperSave"] = new GloballyAccessibleClass();
}
return items["PaperSave"] as GloballyAccessibleClass;
}
}
//public HostedEnvironment PaperSaveEnvironment { get; set; };
}
{
private GloballyAccessibleClass() { }
public static GloballyAccessibleClass Instance
{
get
{
IDictionary items = HttpContext.Current.Items;
if (!items.Contains("PaperSave"))
{
items["PaperSave"] = new GloballyAccessibleClass();
}
return items["PaperSave"] as GloballyAccessibleClass;
}
}
//public HostedEnvironment PaperSaveEnvironment { get; set; };
}
No comments:
Post a Comment