May 2019
Intermediate to advanced
504 pages
11h 50m
English
In the previous examples, we used a static accessor for our telemetry writer instance. However, this implementation can cause serious architectural problems, the most important of which is that we would be coupling our application class with a concrete implementation of the App Center SDK.
In order to remedy architectural issues that may arise, let's create a proxy telemetry container that will divert telemetry requests to target telemetry writers. To do so, follow the following steps:
public interface ITelemetryWriter { string Name { get; } void TrackEvent(TelemetryEvent @event); void TrackError(Read now
Unlock full access