Show / Hide Table of Contents

    Class FtpStateMachine<TStatus>.Transition

    A class representing a transition.

    Inheritance
    Object
    FtpStateMachine<TStatus>.Transition
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: FubarDev.FtpServer
    Assembly: FubarDev.FtpServer.Abstractions.dll
    Syntax
    protected class Transition

    Constructors

    | Improve this Doc View Source

    Transition(TStatus, TStatus, String, SecurityActionResult)

    Initializes a new instance of the FtpStateMachine<TStatus>.Transition class.

    Declaration
    public Transition(TStatus source, TStatus target, string command, SecurityActionResult resultCode)
    Parameters
    Type Name Description
    TStatus source

    The source status.

    TStatus target

    The target status.

    String command

    The trigger command.

    SecurityActionResult resultCode

    The expected FTP code.

    | Improve this Doc View Source

    Transition(TStatus, TStatus, String, Func<Int32, Boolean>)

    Initializes a new instance of the FtpStateMachine<TStatus>.Transition class.

    Declaration
    public Transition(TStatus source, TStatus target, string command, Func<int, bool> isCodeMatch)
    Parameters
    Type Name Description
    TStatus source

    The source status.

    TStatus target

    The target status.

    String command

    The trigger command.

    Func<Int32, Boolean> isCodeMatch

    A function to test if the code triggers this transition.

    | Improve this Doc View Source

    Transition(TStatus, TStatus, String, Int32)

    Initializes a new instance of the FtpStateMachine<TStatus>.Transition class.

    Declaration
    public Transition(TStatus source, TStatus target, string command, int hundredsRange)
    Parameters
    Type Name Description
    TStatus source

    The source status.

    TStatus target

    The target status.

    String command

    The trigger command.

    Int32 hundredsRange

    The hundreds range.

    Remarks

    The hundredsRange is multiplied by 100 to get the FTP code range.

    Properties

    | Improve this Doc View Source

    Source

    Gets the source status.

    Declaration
    public TStatus Source { get; }
    Property Value
    Type Description
    TStatus
    | Improve this Doc View Source

    Target

    Gets the target status.

    Declaration
    public TStatus Target { get; }
    Property Value
    Type Description
    TStatus

    Methods

    | Improve this Doc View Source

    IsMatch(String)

    Returns true when this transition might be triggered by the given command.

    Declaration
    public bool IsMatch(string command)
    Parameters
    Type Name Description
    String command

    The command to test for.

    Returns
    Type Description
    Boolean

    true when this transition might be triggered by the given command.

    | Improve this Doc View Source

    IsMatch(String, Int32)

    Returns true when this transition will be triggered by the given command and code.

    Declaration
    public bool IsMatch(string command, int code)
    Parameters
    Type Name Description
    String command

    The command to test for.

    Int32 code

    The code to test for.

    Returns
    Type Description
    Boolean

    true when this transition will be triggered by the given command and code.

    • Improve this Doc
    • View Source
    Back to top
    Copyright © 2018 Fubar Development Junker
    Generated by DocFX
    Creative Commons License
    FluentMigrator Documentation by FluentMigrator Project is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.