assistant.net.diagnostics 0.5.182

dotnet add package assistant.net.diagnostics --version 0.5.182
NuGet\Install-Package assistant.net.diagnostics -Version 0.5.182
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="assistant.net.diagnostics" Version="0.5.182" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add assistant.net.diagnostics --version 0.5.182
#r "nuget: assistant.net.diagnostics, 0.5.182"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install assistant.net.diagnostics as a Cake Addin
#addin nuget:?package=assistant.net.diagnostics&version=0.5.182

// Install assistant.net.diagnostics as a Cake Tool
#tool nuget:?package=assistant.net.diagnostics&version=0.5.182

assistant.net.diagnostics

Diagnostics management tools including tracking operations, correlations, event tracing etc.

Diagnostic context

Execution context exposing scoped correlation and user IDs.

using var provider = new ServiceCollection()
    .AddDiagnosticContext()
    .BuildServiceProvider();

var context = provider.GetRequiredService<IDiagnosticContext>();
var correlationId = provider.GetRequiredService<IDiagnosticContext>().CorrelationId;
var userId = provider.GetRequiredService<IDiagnosticContext>().UserId;

Diagnostics

Operation management tool with default implementation that uses .net Activity feature behind the scene.

using var provider = new ServiceCollection()
    .AddDiagnostics()
    .BuildServiceProvider();

var factory = provider.GetRequiredService<IDiagnosticFactory>();
var operation = factory.Start();

operation.Complete("message");
// operation.Fail("message");
Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on assistant.net.diagnostics:

Package Downloads
assistant.net.storage

A common storage abstraction, tools and its basic local (in-memory) implementation.

assistant.net.messaging

Local (in-memory) message handling implementation.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.5.182 626 5/8/2023
0.4.151 685 3/28/2023
0.4.145 768 3/22/2023
0.4.144 2,302 9/4/2022
0.4.140 2,284 8/13/2022
0.3.139 2,293 8/9/2022
0.3.138 2,268 8/7/2022
0.3.137 2,246 8/6/2022
0.3.135 2,123 7/14/2022
0.3.133 2,123 7/4/2022
0.3.127 2,145 6/26/2022
0.3.125 2,123 6/25/2022
0.3.123 2,164 6/23/2022
0.3.121 2,133 6/22/2022
0.3.119 2,114 6/20/2022