MSALTelemetry Class Reference

Inherits from NSObject
Declared in MSALTelemetry.h

Overview

@class MSALTelemetry

The central class for MSAL telemetry.

Usage: Get a singleton instance of MSALTelemetry; register a dispatcher for receiving telemetry events.

+ sharedInstance

Get a singleton instance of MSALTelemetry.

+ (nonnull MSALTelemetry *)sharedInstance

Discussion

Get a singleton instance of MSALTelemetry.

Declared In

MSALTelemetry.h

– addDispatcher:setTelemetryOnFailure:

Register a telemetry dispatcher for receiving telemetry events.

- (void)addDispatcher:(nonnull id<MSALDispatcher>)dispatcher setTelemetryOnFailure:(BOOL)setTelemetryOnFailure

Parameters

dispatcher

An instance of MSALDispatcher implementation.

setTelemetryOnFailure

If set YES, telemetry events are only dispatched when errors occurred; If set NO, MSAL will dispatch will dispatch all events.

Discussion

Register a telemetry dispatcher for receiving telemetry events.

Declared In

MSALTelemetry.h

– removeDispatcher:

Remove a telemetry dispatcher added for receiving telemetry events.

- (void)removeDispatcher:(nonnull id<MSALDispatcher>)dispatcher

Parameters

dispatcher

An instance of MSALDispatcher implementation added to the dispatches before.

Discussion

Remove a telemetry dispatcher added for receiving telemetry events.

Declared In

MSALTelemetry.h

– removeAllDispatchers

Remove all telemetry dispatchers added to the dispatchers collection.

- (void)removeAllDispatchers

Discussion

Remove all telemetry dispatchers added to the dispatchers collection.

Declared In

MSALTelemetry.h