예제 #1
0
		/// <summary>
		/// Initializes a new instance of the <see cref="AbstractScope"/> class.
		/// </summary>
		/// <param name="flushAction">The flush action.</param>
		/// <param name="type">The type.</param>
		public AbstractScope(FlushAction flushAction, SessionScopeType type)
		{
			this.flushAction = flushAction;
			this.type = type;
			
			ThreadScopeAccessor.Instance.RegisterScope(this);
		}
예제 #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="AbstractScope"/> class.
        /// </summary>
        /// <param name="flushAction">The flush action.</param>
        /// <param name="type">The type.</param>
        public AbstractScope(FlushAction flushAction, SessionScopeType type)
        {
            this.flushAction = flushAction;
            this.type        = type;

            ThreadScopeAccessor.Instance.RegisterScope(this);
        }
예제 #3
0
		/// <summary>
		/// Initializes a new instance of the <see cref="SessionScope"/> class.
		/// </summary>
		/// <param name="flushAction">The flush action.</param>
		/// <param name="type">The type.</param>
		protected SessionScope(FlushAction flushAction, SessionScopeType type) : base(flushAction, type)
		{
		}
예제 #4
0
 protected SessionScope(SessionScopeType type) : base(type)
 {
 }
예제 #5
0
 public AbstractScope(SessionScopeType type)
 {
     this.type = type;
     ThreadScopeAccessor.Instance.RegisterScope(this);
 }
예제 #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SessionScope"/> class.
 /// </summary>
 /// <param name="flushAction">The flush action.</param>
 /// <param name="type">The type.</param>
 protected SessionScope(FlushAction flushAction, SessionScopeType type) : base(flushAction, type)
 {
 }