C# Class Microsoft.HockeyApp.Channel.InMemoryChannel

Represents a communication channel for sending telemetry to Application Insights via HTTPS. There will be a buffer that will not be persisted, to enforce the queued telemetry items to be sent, ITelemetryChannel.Flush should be called.
Inheritance: ITelemetryChannel
Mostrar archivo Open project: bitstadium/HockeySDK-Windows

Private Properties

Property Type Description
Dispose void
InMemoryChannel System

Public Methods

Method Description
Dispose ( ) : void

Disposing the channel.

Flush ( ) : void

Will send all the telemetry items stored in the memory.

InMemoryChannel ( ) : System

Initializes a new instance of the InMemoryChannel class.

Send ( ITelemetry item ) : void

Sends an instance of ITelemetry through the channel.

Private Methods

Method Description
Dispose ( bool disposing ) : void
InMemoryChannel ( TelemetryBuffer telemetryBuffer, InMemoryTransmitter transmitter ) : System

Initializes a new instance of the InMemoryChannel class. Used in unit tests for constructor injection.

Method Details

Dispose() public method

Disposing the channel.
public Dispose ( ) : void
return void

Flush() public method

Will send all the telemetry items stored in the memory.
public Flush ( ) : void
return void

InMemoryChannel() public method

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

Send() public method

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