/// <summary> /// Initialize a new instance. /// </summary> public LazySessionPerConversationHolder(SessionPerConversationScope owner, IConversationState activeConversation, ICollection <IConversationState> allManagedConversation) { if (log.IsDebugEnabled) { log.Debug("Created LazyReconnectableSessionHolder"); } this.owner = owner; this.activeConversation = activeConversation; this.allManagedConversation = allManagedConversation; }
public void CloseAll() { foreach (IConversationState conversation in allManagedConversation) { CloseConversation(conversation); } owner = null; activeConversation = null; allManagedConversation = null; if (log.IsDebugEnabled) { log.Debug("CloseAll LazySessionPerConversationHolder"); } }
public void CloseAll() { foreach (IConversationState conversation in this.allManagedConversation) { this.CloseConversation(conversation); } owner = null; this.activeConversation = null; this.allManagedConversation = null; if (log.IsDebugEnabled) log.Debug("CloseAll LazySessionPerConversationHolder"); }
/// <summary> /// Initialize a new instance. /// </summary> public LazySessionPerConversationHolder(SessionPerConversationScope owner, IConversationState activeConversation, ICollection<IConversationState> allManagedConversation) { if (log.IsDebugEnabled) log.Debug("Created LazyReconnectableSessionHolder"); this.owner = owner; this.activeConversation = activeConversation; this.allManagedConversation = allManagedConversation; }