Exemple #1
0
        /// <summary>
        /// Default constructor
        /// </summary>
        /// <param name="physicalRootPath">The physical root path. May be site-root-relative by using "~/" as the prefix.</param>
        public FilesystemUserDataStore(string physicalRootPath, IUserSerializationFormatter userFormatter)
        {
            Assert.ArgumentNotNull(userFormatter, nameof(userFormatter));

            _userFormatter = userFormatter;
            // ReSharper disable once DoNotCallOverridableMethodsInConstructor
            _physicalRootPath = InitializeRootPath(physicalRootPath);
        }
        /// <summary>
        /// Default constructor
        /// </summary>
        /// <param name="physicalRootPath">The physical root path. May be site-root-relative by using "~/" as the prefix.</param>
        public FilesystemUserDataStore(string physicalRootPath, IUserSerializationFormatter userFormatter)
        {
            Assert.ArgumentNotNull(userFormatter, nameof(userFormatter));

            _userFormatter = userFormatter;
            // ReSharper disable once DoNotCallOverridableMethodsInConstructor
            _physicalRootPath = InitializeRootPath(physicalRootPath);
        }