/// <summary> /// Initializes a new instance of the <see cref="SessionPersistence"/> class using /// the specified persistence type. /// </summary> /// <param name="persistenceType">The session persistence mode to use.</param> /// <exception cref="ArgumentNullException">If <paramref name="persistenceType"/> is <see langword="null"/>.</exception> public SessionPersistence(SessionPersistenceType persistenceType) { if (persistenceType == null) throw new ArgumentNullException("persistenceType"); _body = new SessionPersistenceBody(persistenceType); }
/// <summary> /// Initializes a new instance of the <see cref="SessionPersistence"/> class using /// the specified persistence type. /// </summary> /// <param name="persistenceType">The session persistence mode to use.</param> /// <exception cref="ArgumentNullException">If <paramref name="persistenceType"/> is <see langword="null"/>.</exception> public SessionPersistence(SessionPersistenceType persistenceType) { if (persistenceType == null) { throw new ArgumentNullException("persistenceType"); } _body = new SessionPersistenceBody(persistenceType); }