C# Class NLog.Targets.Syslog.LogEventMsgSet

Show file Open project: graffen/NLog.Targets.Syslog Class Usage Examples

Private Properties

Property Type Description
PrepareMessage void
SendAsync Task
SendCanceledTcsTask Task
SendFailedTcsTask Task
SendSucceededTcsTask Task

Public Methods

Method Description
Build ( Layout layout ) : LogEventMsgSet
LogEventMsgSet ( NLog.Common.AsyncLogEventInfo asyncLogEvent, ByteArray buffer, MessageBuilder messageBuilder, MessageTransmitter messageTransmitter ) : System
SendAsync ( CancellationToken token ) : Task
ToString ( ) : string

Private Methods

Method Description
PrepareMessage ( ) : void
SendAsync ( CancellationToken token, TaskCompletionSource tcs ) : Task
SendCanceledTcsTask ( TaskCompletionSource tcs ) : Task
SendFailedTcsTask ( TaskCompletionSource tcs, Exception exception ) : Task
SendSucceededTcsTask ( TaskCompletionSource tcs ) : Task

Method Details

Build() public method

public Build ( Layout layout ) : LogEventMsgSet
layout NLog.Layouts.Layout
return LogEventMsgSet

LogEventMsgSet() public method

public LogEventMsgSet ( NLog.Common.AsyncLogEventInfo asyncLogEvent, ByteArray buffer, MessageBuilder messageBuilder, MessageTransmitter messageTransmitter ) : System
asyncLogEvent NLog.Common.AsyncLogEventInfo
buffer ByteArray
messageBuilder NLog.Targets.Syslog.MessageCreation.MessageBuilder
messageTransmitter NLog.Targets.Syslog.MessageSend.MessageTransmitter
return System

SendAsync() public method

public SendAsync ( CancellationToken token ) : Task
token System.Threading.CancellationToken
return Task

ToString() public method

public ToString ( ) : string
return string