C# 클래스 NLog.Internal.NetworkSenders.NetworkSender

A base class for all network senders. Supports one-way sending of messages over various protocols.
상속: IDisposable
파일 보기 프로젝트 열기: NLog/NLog 1 사용 예제들

공개 메소드들

메소드 설명
CheckSocket ( ) : void
Close ( AsyncContinuation continuation ) : void

Closes the sender and releases any unmanaged resources.

Dispose ( ) : void

Closes the sender and releases any unmanaged resources.

FlushAsync ( AsyncContinuation continuation ) : void

Flushes any pending messages and invokes a continuation.

Initialize ( ) : void

Initializes this network sender.

Send ( byte bytes, int offset, int length, AsyncContinuation asyncContinuation ) : void

Send the given text over the specified protocol.

보호된 메소드들

메소드 설명
DoClose ( AsyncContinuation continuation ) : void

Performs sender-specific close operation.

DoFlush ( AsyncContinuation continuation ) : void

Performs sender-specific flush.

DoInitialize ( ) : void

Performs sender-specific initialization.

DoSend ( byte bytes, int offset, int length, AsyncContinuation asyncContinuation ) : void

Actually sends the given text over the specified protocol.

To be overridden in inheriting classes.

NetworkSender ( string url ) : System

Initializes a new instance of the NetworkSender class.

ParseEndpointAddress ( Uri uri, AddressFamily addressFamily ) : EndPoint

Parses the URI into an endpoint address.

비공개 메소드들

메소드 설명
Dispose ( bool disposing ) : void

메소드 상세

CheckSocket() 공개 메소드

public CheckSocket ( ) : void
리턴 void

Close() 공개 메소드

Closes the sender and releases any unmanaged resources.
public Close ( AsyncContinuation continuation ) : void
continuation AsyncContinuation The continuation.
리턴 void

Dispose() 공개 메소드

Closes the sender and releases any unmanaged resources.
public Dispose ( ) : void
리턴 void

DoClose() 보호된 메소드

Performs sender-specific close operation.
protected DoClose ( AsyncContinuation continuation ) : void
continuation AsyncContinuation The continuation.
리턴 void

DoFlush() 보호된 메소드

Performs sender-specific flush.
protected DoFlush ( AsyncContinuation continuation ) : void
continuation AsyncContinuation The continuation.
리턴 void

DoInitialize() 보호된 메소드

Performs sender-specific initialization.
protected DoInitialize ( ) : void
리턴 void

DoSend() 보호된 추상적인 메소드

Actually sends the given text over the specified protocol.
To be overridden in inheriting classes.
protected abstract DoSend ( byte bytes, int offset, int length, AsyncContinuation asyncContinuation ) : void
bytes byte The bytes to be sent.
offset int Offset in buffer.
length int Number of bytes to send.
asyncContinuation AsyncContinuation The async continuation to be invoked after the buffer has been sent.
리턴 void

FlushAsync() 공개 메소드

Flushes any pending messages and invokes a continuation.
public FlushAsync ( AsyncContinuation continuation ) : void
continuation AsyncContinuation The continuation.
리턴 void

Initialize() 공개 메소드

Initializes this network sender.
public Initialize ( ) : void
리턴 void

NetworkSender() 보호된 메소드

Initializes a new instance of the NetworkSender class.
protected NetworkSender ( string url ) : System
url string The network URL.
리턴 System

ParseEndpointAddress() 보호된 메소드

Parses the URI into an endpoint address.
protected ParseEndpointAddress ( Uri uri, AddressFamily addressFamily ) : EndPoint
uri System.Uri The URI to parse.
addressFamily AddressFamily The address family.
리턴 System.Net.EndPoint

Send() 공개 메소드

Send the given text over the specified protocol.
public Send ( byte bytes, int offset, int length, AsyncContinuation asyncContinuation ) : void
bytes byte Bytes to be sent.
offset int Offset in buffer.
length int Number of bytes to send.
asyncContinuation AsyncContinuation The asynchronous continuation.
리턴 void