Class MemberValidationResult
Result for a member validation.
Inherited Members
Namespace: FubarDev.FtpServer.AccountManagement
Assembly: FubarDev.FtpServer.Abstractions.dll
Syntax
public class MemberValidationResult
Constructors
| Improve this Doc View SourceMemberValidationResult(MemberValidationStatus)
Initializes a new instance of the MemberValidationResult class.
Declaration
public MemberValidationResult(MemberValidationStatus status)
Parameters
Type | Name | Description |
---|---|---|
MemberValidationStatus | status | The error status for the validation. |
MemberValidationResult(MemberValidationStatus, IFtpUser)
Initializes a new instance of the MemberValidationResult class.
Declaration
[Obsolete("Use the overload accepting a ClaimsPrincipal.")]
public MemberValidationResult(MemberValidationStatus status, IFtpUser user)
Parameters
Type | Name | Description |
---|---|---|
MemberValidationStatus | status | The success status for the validation. |
IFtpUser | user | The validated user. |
MemberValidationResult(MemberValidationStatus, ClaimsPrincipal)
Initializes a new instance of the MemberValidationResult class.
Declaration
public MemberValidationResult(MemberValidationStatus status, ClaimsPrincipal user)
Parameters
Type | Name | Description |
---|---|---|
MemberValidationStatus | status | The success status for the validation. |
ClaimsPrincipal | user | The validated user. |
Properties
| Improve this Doc View SourceFtpUser
Gets the FTP user.
Declaration
public ClaimsPrincipal FtpUser { get; }
Property Value
Type | Description |
---|---|
ClaimsPrincipal |
IsSuccess
Gets a value indicating whether the user login succeeded.
Declaration
public bool IsSuccess { get; }
Property Value
Type | Description |
---|---|
Boolean |
Status
Gets the status of the validation.
Declaration
[Obsolete("Use the IsAnonymous extension method for ClaimsPrincipal.")]
public MemberValidationStatus Status { get; }
Property Value
Type | Description |
---|---|
MemberValidationStatus |
User
Gets the authenticated user.
Declaration
[Obsolete("Use the FtpUser property.")]
public IFtpUser User { get; }
Property Value
Type | Description |
---|---|
IFtpUser |