b007d450d8
Claude-Session: https://claude.ai/code/session_01Ef2ozxS7QPanGT8uoATbTe
17 lines
614 B
C#
17 lines
614 B
C#
using Opc.Ua;
|
|
|
|
namespace ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient;
|
|
|
|
/// <summary>
|
|
/// The one <see cref="ITelemetryContext" /> the driver hands the SDK's non-obsolete (telemetry-taking)
|
|
/// overloads. An empty builder keeps SDK internals off any logging provider (mirrors Client.Shared's
|
|
/// <c>ClientTelemetry</c>).
|
|
/// </summary>
|
|
internal static class SdkTelemetry
|
|
{
|
|
private static readonly Lazy<ITelemetryContext> Instance = new(() => DefaultTelemetry.Create(_ => { }));
|
|
|
|
/// <summary>Gets the shared telemetry context.</summary>
|
|
public static ITelemetryContext Context => Instance.Value;
|
|
}
|