C# Class NLog.SocketAppenderBase

Mostrar archivo Open project: sschmid/NLog

Public Methods

Method Description
Connect ( IPAddress ip, int port ) : void
Disconnect ( ) : void
Listen ( int port ) : void
Send ( NLog.LogLevel logLevel, string message ) : void

Protected Methods

Method Description
serializeMessage ( NLog.LogLevel logLevel, string message ) : byte[]

Private Methods

Method Description
isSocketReady ( ) : bool
onConnected ( object sender, EventArgs e ) : void

Method Details

Connect() public method

public Connect ( IPAddress ip, int port ) : void
ip System.Net.IPAddress
port int
return void

Disconnect() public method

public Disconnect ( ) : void
return void

Listen() public method

public Listen ( int port ) : void
port int
return void

Send() public method

public Send ( NLog.LogLevel logLevel, string message ) : void
logLevel NLog.LogLevel
message string
return void

serializeMessage() protected abstract method

protected abstract serializeMessage ( NLog.LogLevel logLevel, string message ) : byte[]
logLevel NLog.LogLevel
message string
return byte[]