C# Class SmtpServer.Protocol.SmtpStateMachine.StateTable

Inheritance: IEnumerable
Exibir arquivo Open project: cosullivan/SmtpServer

Public Methods

Method Description
Add ( State state ) : void

Add the given state.

Initialize ( SmtpState stateId ) : void

Sets the initial state.

TryAccept ( TokenEnumerator tokenEnumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool

Advances the enumerator to the next command in the stream.

this ( SmtpState stateId ) : State

Returns the state with the given ID.

Private Methods

Method Description
IEnumerable ( ) : IEnumerator

Returns an enumerator that iterates through a collection.

Method Details

Add() public method

Add the given state.
public Add ( State state ) : void
state State
return void

Initialize() public method

Sets the initial state.
public Initialize ( SmtpState stateId ) : void
stateId SmtpState The ID of the initial state.
return void

TryAccept() public method

Advances the enumerator to the next command in the stream.
public TryAccept ( TokenEnumerator tokenEnumerator, SmtpCommand &command, SmtpResponse &errorResponse ) : bool
tokenEnumerator SmtpServer.Protocol.Text.TokenEnumerator The token enumerator to accept the command from.
command SmtpCommand The command that is defined within the token enumerator.
errorResponse SmtpResponse The error that indicates why the command could not be made.
return bool

this() public method

Returns the state with the given ID.
public this ( SmtpState stateId ) : State
stateId SmtpState The state ID to return.
return State