/// <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); }
/// <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) { }
protected SessionScope(SessionScopeType type) : base(type) { }
public AbstractScope(SessionScopeType type) { this.type = type; ThreadScopeAccessor.Instance.RegisterScope(this); }