C# Класс SumoLogic.Logging.Common.Sender.SumoLogicMessageSender

A class for sending messages to SumoLogic server.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

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