Exemple #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="SessionScope"/> class.
        /// </summary>
        /// <param name="settings">An <see cref="SessionPerConversationScopeSettings"/> instance holding the scope configuration</param>
        public SessionPerConversationScope(SessionPerConversationScopeSettings settings)
        {
            log           = LogManager.GetLogger(GetType());
            this.settings = settings;

            ISOPEN_KEY = UniqueKey.GetInstanceScopedString(this, "IsOpen");
            OPENER_CONVERSATION_ID_KEY = UniqueKey.GetInstanceScopedString(this, "OpenerConversationId");
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="SessionScope"/> class.
        /// </summary>
        /// <param name="settings">An <see cref="SessionPerConversationScopeSettings"/> instance holding the scope configuration</param>
        public SessionPerConversationScope(SessionPerConversationScopeSettings settings)
        {
            log = LogManager.GetLogger(this.GetType());
            this.settings = settings;

            ISOPEN_KEY = UniqueKey.GetInstanceScopedString(this, "IsOpen");
            OPENER_CONVERSATION_ID_KEY = UniqueKey.GetInstanceScopedString(this, "OpenerConversationId");
        }