C# Class SmtpServer.Protocol.SmtpStateMachine.State

Inheritance: IEnumerable
Show file Open project: cosullivan/SmtpServer

Public Methods

Method Description
Add ( string command, TryMakeDelegate tryMake, SmtpState transitionTo = null ) : void

Add a state action.

State ( SmtpState stateId ) : System

Constructor.

Private Methods

Method Description
IEnumerable ( ) : IEnumerator

Returns an enumerator that iterates through a collection.

Method Details

Add() public method

Add a state action.
public Add ( string command, TryMakeDelegate tryMake, SmtpState transitionTo = null ) : void
command string The name of the SMTP command.
tryMake TryMakeDelegate The function callback to create the command.
transitionTo SmtpState The state to transition to.
return void

State() public method

Constructor.
public State ( SmtpState stateId ) : System
stateId SmtpState The ID of the state.
return System