C# 클래스 SumoLogic.Logging.Common.Sender.SumoLogicMessageSender

A class for sending messages to SumoLogic server.
상속: IDisposable
파일 보기 프로젝트 열기: SumoLogic/sumologic-net-appenders 1 사용 예제들

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Send ( string body, string name ) : void

Blocks while sending a message to the SumoLogic server, retrying as many time as needed.

SumoLogicMessageSender ( HttpMessageHandler httpMessageHandler, ILog log ) : System

Initializes a new instance of the SumoLogicMessageSender class.

TrySend ( string body, string name ) : void

Blocks while sending a message to the SumoLogic server, no retries are performed.

보호된 메소드들

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

Releases the unmanaged resources used and optionally disposes of the managed resources.

메소드 상세

Dispose() 공개 메소드

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

Releases the unmanaged resources used and optionally disposes of the managed resources.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to releases only unmanaged resources.
리턴 void

Send() 공개 메소드

Blocks while sending a message to the SumoLogic server, retrying as many time as needed.
public Send ( string body, string name ) : void
body string The message body.
name string The message name.
리턴 void

SumoLogicMessageSender() 공개 메소드

Initializes a new instance of the SumoLogicMessageSender class.
public SumoLogicMessageSender ( HttpMessageHandler httpMessageHandler, ILog log ) : System
httpMessageHandler System.Net.Http.HttpMessageHandler The HTTP message handler.
log ILog The log service.
리턴 System

TrySend() 공개 메소드

Blocks while sending a message to the SumoLogic server, no retries are performed.
public TrySend ( string body, string name ) : void
body string The message body.
name string The message name.
리턴 void