C# Class Hie.Core.Endpoints.FileWriterEndpoint

Inheritance: EndpointBase
Show file Open project: NiclasOlofsson/HIE Class Usage Examples

Public Properties

Property Type Description
MessageSent System.Threading.ManualResetEvent

Protected Properties

Property Type Description
_hostService IApplicationHost

Public Methods

Method Description
FileWriterEndpoint ( string filePath, bool append, Encoding encoding, bool deleteOnStart = false ) : System.IO
Initialize ( IApplicationHost host, IOptions options ) : void
ProcessMessage ( IEndpoint endpoint, byte data ) : void
StartProcessing ( ) : void
StopProcessing ( ) : void
WaitForMessage ( int milisecondsTimeout = 1000 ) : void

Method Details

FileWriterEndpoint() public method

public FileWriterEndpoint ( string filePath, bool append, Encoding encoding, bool deleteOnStart = false ) : System.IO
filePath string
append bool
encoding System.Text.Encoding
deleteOnStart bool
return System.IO

Initialize() public method

public Initialize ( IApplicationHost host, IOptions options ) : void
host IApplicationHost
options IOptions
return void

ProcessMessage() public method

public ProcessMessage ( IEndpoint endpoint, byte data ) : void
endpoint IEndpoint
data byte
return void

StartProcessing() public method

public StartProcessing ( ) : void
return void

StopProcessing() public method

public StopProcessing ( ) : void
return void

WaitForMessage() public method

public WaitForMessage ( int milisecondsTimeout = 1000 ) : void
milisecondsTimeout int
return void

Property Details

MessageSent public property

public ManualResetEvent,System.Threading MessageSent
return System.Threading.ManualResetEvent

_hostService protected property

protected IApplicationHost _hostService
return IApplicationHost