public FactsListFormatter(IFtpUser user, DirectoryListingEnumerator enumerator, ISet <string> activeFacts, bool absoluteName) { _user = user.CreateClaimsPrincipal(); _enumerator = enumerator; _activeFacts = activeFacts; _absoluteName = absoluteName; }
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(); }