Ejemplo n.º 1
0
 public FactsListFormatter(IFtpUser user, DirectoryListingEnumerator enumerator, ISet <string> activeFacts, bool absoluteName)
 {
     _user         = user.CreateClaimsPrincipal();
     _enumerator   = enumerator;
     _activeFacts  = activeFacts;
     _absoluteName = absoluteName;
 }
Ejemplo n.º 2
0
 public UnixFileSystem(
     IUnixDirectoryEntry root,
     IFtpUser user,
     UnixUserInfo?userInfo)
 {
     _user     = user.CreateClaimsPrincipal();
     _userInfo = userInfo;
     Root      = root;
 }
        public MemberValidationResult(MemberValidationStatus status, IFtpUser user)
        {
            if (status != MemberValidationStatus.Anonymous && status != MemberValidationStatus.AuthenticatedUser)
            {
                throw new ArgumentOutOfRangeException(nameof(status), "User object must only be specified when validation was successful.");
            }

            _status  = status;
            _user    = user ?? throw new ArgumentNullException(nameof(user));
            _ftpUser = user.CreateClaimsPrincipal();
        }