C# Class NLog.Targets.Syslog.Policies.TruncateToComputedValuePolicy

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

Public Methods

Method Description
Apply ( ByteArray bytes ) : void
IsApplicable ( ) : bool
TruncateToComputedValuePolicy ( EnforcementConfig enforcementConfig, bool assumeAsciiEncoding ) : NLog.Common

Private Methods

Method Description
MaxLengthToAvoidCharCorruption ( ByteArray bytes, long updatedMaxLength ) : long

Method Details

Apply() public method

public Apply ( ByteArray bytes ) : void
bytes ByteArray
return void

IsApplicable() public method

public IsApplicable ( ) : bool
return bool

TruncateToComputedValuePolicy() public method

public TruncateToComputedValuePolicy ( EnforcementConfig enforcementConfig, bool assumeAsciiEncoding ) : NLog.Common
enforcementConfig NLog.Targets.Syslog.Settings.EnforcementConfig
assumeAsciiEncoding bool
return NLog.Common