C# Class NLog.Targets.Syslog.MessageSend.Tcp

Inheritance: MessageTransmitter
Show file Open project: graffen/NLog.Targets.Syslog

Public Methods

Method Description
Dispose ( ) : void
SendMessageAsync ( System.ByteArray message, CancellationToken token ) : Task
Tcp ( TcpConfig tcpConfig ) : System

Private Methods

Method Description
ConnectAsync ( ) : Task
DisposeSslStreamNotTcpClientInnerStream ( ) : void
DisposeTcpClientAndItsInnerStream ( ) : void
FramingTask ( System.ByteArray message ) : Task
InitTcpClient ( ) : Task
SslDecorate ( TcpClient tcpClient ) : Stream
WriteAsync ( System.ByteArray message, CancellationToken token ) : Task
WriteAsync ( int offset, System.ByteArray data, CancellationToken token ) : Task

Method Details

Dispose() public method

public Dispose ( ) : void
return void

SendMessageAsync() public method

public SendMessageAsync ( System.ByteArray message, CancellationToken token ) : Task
message System.ByteArray
token System.Threading.CancellationToken
return Task

Tcp() public method

public Tcp ( TcpConfig tcpConfig ) : System
tcpConfig NLog.Targets.Syslog.Settings.TcpConfig
return System