Пример #1
0
        /// <summary>
        /// Default constructor
        /// </summary>
        /// <param name="physicalRootPath">The physical root path. May be site-root-relative by using "~/" as the prefix.</param>
        /// <param name="roleFormatter"></param>
        public FilesystemRoleDataStore(string physicalRootPath, IRoleSerializationFormatter roleFormatter)
        {
            Assert.ArgumentNotNull(roleFormatter, nameof(roleFormatter));

            _formatter = roleFormatter;

            // ReSharper disable once DoNotCallOverridableMethodsInConstructor
            _physicalRootPath = InitializeRootPath(physicalRootPath);
        }
Пример #2
0
        /// <summary>
        /// Default constructor
        /// </summary>
        /// <param name="physicalRootPath">The physical root path. May be site-root-relative by using "~/" as the prefix.</param>
        /// <param name="roleFormatter"></param>
        public FilesystemRoleDataStore(string physicalRootPath, IRoleSerializationFormatter roleFormatter)
        {
            Assert.ArgumentNotNull(roleFormatter, nameof(roleFormatter));

            _formatter = roleFormatter;

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