Microsoft.AI.ServerTelemetryChannel Returns a per-user/per-application folder. An instance, or null if current application does not have access to file system. Throws if the process lacks the required permissions to access the . Encapsulates arguments of the event. Initializes a new instance of the class with the specified runner of asynchronous methods. Runs the specified asynchronous method while preventing the application from exiting. Runs tasks synchronously, on the current thread. From . Starts the , catches and logs any exceptions it may throw. Encapsulates application lifecycle events. Occurs when a new instance of the application is started or an existing instance is activated. Occurs when the application is suspending or closing. Encapsulates platform-specific behavior of network information APIs. Adds event handler. Defined as a method instead of an event in this interface because C# compiler changes signature of event in a Windows Runtime component, making it very hard to implement properly. Encapsulates platform-specific behavior of network information APIs. Accumulates items for efficient transmission. Releases resources used by this instance. Sends the specified item. The is null. Passes all items to the and empties the queue. Gets or sets the maximum number of telemetry items that can be buffered before transmission. The value is zero or less. Gets or sets the endpoint address. If endpoint address is set to null, the default endpoint address will be used. Gets a value that determines amount of time transmission sending will be paused before attempting to resume transmission after a network error is detected. Gets or sets the maximum amount of memory in bytes for buffering objects. Use this property to limit the amount of memory used to store telemetry in memory of the application before transmission. Once the maximum amount of memory is reached, will reject new transmissions. Gets the combined length of stored in the buffer. Loads a new transmission from the specified . Return transmission loaded from file; throws FormatException is file is corrupted. Saves the transmission to the specified . Gets or sets the the maximum number of objects that can be sent simultaneously. Use this property to limit the number of concurrent HTTP connections. Once the maximum number of transmissions in progress is reached, will stop accepting new transmissions until previous transmissions are sent. Gets or sets the total amount of disk space, in bytes, allowed for storing transmission files. Implements throttled and persisted transmission of telemetry to Application Insights. Initializes a new instance of the class. Used only for UTs. Implements the events for web applications. Unregisters the from . Gets called by when the web application is stopping. False when the method is invoked first time, allowing async shutdown operations. True when the method is invoked second time, demanding to unregister immediately. The event is raised when the instance is first created. This event is not raised for web applications. The event is raised when calls the method. Represents a communication channel for sending telemetry to Application Insights via HTTP/S. Initializes a new instance of the class. Releases unmanaged and - optionally - managed resources. Sends an instance of ITelemetry through the channel. Synchronously flushes the telemetry buffer. Initialize method is called after all configuration properties have been loaded from the configuration. Gets or sets a value indicating whether developer mode of telemetry transmission is enabled. When developer mode is True, sends telemetry to Application Insights immediately during the entire lifetime of the application. When developer mode is False, respects production sending policies defined by other properties. Gets or sets the HTTP address where the telemetry is sent. Gets or sets the maximum telemetry batching interval. Once the interval expires, serializes the accumulated telemetry items for transmission. Gets or sets the maximum number of telemetry items will accumulate in a memory before the serializing them for transmission to Application Insights. Gets or sets the maximum amount of memory, in bytes, that will use to buffer transmissions before sending them to Application Insights. Gets or sets the maximum number of telemetry transmissions that will send to Application Insights at the same time. Gets or sets the maximum amount of disk space, in bytes, that will use to store unsent telemetry transmissions.