private void LoadTelemetryChannel(TelemetryConfiguration cfg) { TelemetryBuffer buffer = new TelemetryBuffer(); DeliverySettings deliverySettings = new DeliverySettings { AppInsightsEndpointEnabled = !string.IsNullOrEmpty(this.properties.InstrumentationKey) , TelimenaTelemetryEndpoint = GetTelimenaTelemetryEndpoint(this.properties) , DeliveryInterval = this.properties.StartupInfo.DeliveryInterval , TelimenaTelemetryKey = this.properties.TelemetryKey }; TelimenaInMemoryTransmitter transmitter = new TelimenaInMemoryTransmitter(buffer, deliverySettings); cfg.TelemetryChannel = new TelimenaInMemoryChannel(buffer, transmitter); }
internal TelimenaInMemoryTransmitter(TelemetryBuffer buffer, DeliverySettings deliverySettings) : base(buffer) { this.DeliverySettings = deliverySettings; this.SendingInterval = deliverySettings.DeliveryInterval; }