Hevea documentation

OakServer Constructor (Int32, String, DocumentRegistrationCollection, Boolean)

Constructor.

public OakServer(
   int port,
   string workingDirectory,
   DocumentRegistrationCollection documents,
   bool mustAuthenticate
);

Parameters

port
main TCP port of the server
workingDirectory
working directory
documents
FTP applications that must be registered
mustAuthenticate
true if the user must systematically be authenticated

Exceptions

Exception Type Condition
ArgumentNullException serverIPAddress, workingDirectory or documents is null
ArgumentException one of the registered document does not implement IFtpSynchronousInput, IFtpAsynchronousInput or IFtpOutput
HeveaException Hevea is not started

See Also

OakServer Class | Hevea.Core.Ftp Namespace | OakServer Constructor Overload List