C# Class SumoLogic.Logging.Common.Sender.SumoLogicMessageSender

A class for sending messages to SumoLogic server.
Inheritance: IDisposable
Mostra file Open project: SumoLogic/sumologic-net-appenders Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
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.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

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

Method Details

Dispose() public method

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

Dispose() protected method

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.
return void

Send() public method

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.
return void

SumoLogicMessageSender() public method

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.
return System

TrySend() public method

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.
return void