C# Class Microsoft.HockeyApp.Channel.PersistenceChannel

Represents a communication channel for sending telemetry to Application Insights via HTTPS.
Inheritance: ITelemetryChannel
Datei anzeigen Open project: bitstadium/HockeySDK-Windows Class Usage Examples

Private Properties

Property Type Description

Public Methods

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

Method Details

Dispose() public method

Releases unmanaged and - optionally - managed resources.
public Dispose ( ) : void
return void

Flush() public method

Flushes the in-memory buffer to disk.
public Flush ( ) : void
return void

PersistenceChannel() public method

Initializes a new instance of the PersistenceChannel class.
public PersistenceChannel ( ) : System
return System

PersistenceChannel() public method

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

Send() public method

Sends an instance of ITelemetry through the channel.
public Send ( ITelemetry item ) : void
item ITelemetry
return void