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

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

Private Properties

Свойство Type Description

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

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

Method Details

Dispose() public méthode

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

Dispose() protected méthode

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.
Résultat void

Send() public méthode

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.
Résultat void

SumoLogicMessageSender() public méthode

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.
Résultat System

TrySend() public méthode

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.
Résultat void