public static void Clean() { if (HttpContext.Current != null) { HttpContext.Current.Items[INSTANCEKEY] = null; return; } instance = null; }
private PostManManager(PostManManager instance) { this.hubEvents = instance.hubEvents; }
public static void PerRequest() { var requestInstance = new PostManManager(instance); HttpContext.Current.Items[INSTANCEKEY] = requestInstance; }