C# Класс Microsoft.HockeyApp.Channel.PersistenceChannel

Represents a communication channel for sending telemetry to Application Insights via HTTPS.
Наследование: ITelemetryChannel
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание

Открытые методы

Метод Описание
Dispose ( ) : void

Releases unmanaged and - optionally - managed resources.

Flush ( ) : void

Flushes the in-memory buffer to disk.

PersistenceChannel ( ) : System

Initializes a new instance of the PersistenceChannel class.

PersistenceChannel ( string storageFolderName, int sendersCount = 1 ) : System

Initializes a new instance of the PersistenceChannel class.

Send ( ITelemetry item ) : void

Sends an instance of ITelemetry through the channel.

Описание методов

Dispose() публичный Метод

Releases unmanaged and - optionally - managed resources.
public Dispose ( ) : void
Результат void

Flush() публичный Метод

Flushes the in-memory buffer to disk.
public Flush ( ) : void
Результат void

PersistenceChannel() публичный Метод

Initializes a new instance of the PersistenceChannel class.
public PersistenceChannel ( ) : System
Результат System

PersistenceChannel() публичный Метод

Initializes a new instance of the PersistenceChannel class.
public PersistenceChannel ( string storageFolderName, int sendersCount = 1 ) : System
storageFolderName string /// A folder name. Under this folder all the transmissions will be saved. /// Setting this value groups channels, even from different processes. /// If 2 (or more) channels has the same storageFolderName only one channel will perform the sending even if the channel is in a different process/AppDomain/Thread. ///
sendersCount int /// Defines the number of senders. A sender is a long-running thread that sends telemetry batches in intervals defined by . /// So the amount of senders also defined the maximum amount of http channels opened at the same time. ///
Результат System

Send() публичный Метод

Sends an instance of ITelemetry through the channel.
public Send ( ITelemetry item ) : void
item ITelemetry
Результат void