Zzdats.Lgp.Common.Apm 10.0.4

Prefix Reserved
dotnet add package Zzdats.Lgp.Common.Apm --version 10.0.4
                    
NuGet\Install-Package Zzdats.Lgp.Common.Apm -Version 10.0.4
                    
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="Zzdats.Lgp.Common.Apm" Version="10.0.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Zzdats.Lgp.Common.Apm" Version="10.0.4" />
                    
Directory.Packages.props
<PackageReference Include="Zzdats.Lgp.Common.Apm" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Zzdats.Lgp.Common.Apm --version 10.0.4
                    
#r "nuget: Zzdats.Lgp.Common.Apm, 10.0.4"
                    
#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.
#:package Zzdats.Lgp.Common.Apm@10.0.4
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Zzdats.Lgp.Common.Apm&version=10.0.4
                    
Install as a Cake Addin
#tool nuget:?package=Zzdats.Lgp.Common.Apm&version=10.0.4
                    
Install as a Cake Tool

Zzdats.Lgp.Common.APM .NET10

Repozitorijs satur koplietošanas metodes priekš .NET aplikāciju veiktspējas analīzes.

Šis repozitorijs ir kā daļa no LGP .Net Core projekta.

Pakas

Pakas nosaukums

Zzdats.Lgp.Common.Apm

Lietošana

Lai nomērīt koda izpildes veiktspēju, tam apkārt jāpieliek sekojoša konstrukcija:

public class MyClass
{  
    ...
    private readonly IApmAnalyzer _apmAnalyzer;
    
    public MyClass(
        ...,
        IApmAnalyzer apmAnalyzer)
    {
        ...
        _apmAnalyzer = apmAnalyzer;
    }
	
	public <return_type> MyMethod()
	{
		...
		using (var mySpan = _apmAnalyzer.StartApmSpan(<span_name>, <code_block_type_name>, <code_block_subtype_name>))
		{
			result = mySpan.MonitorExecution(
				() => myMeasuredMethod());
			
			if (mySpan.HasException)
			{
			    ...
			}
		}
		...
	}

Šādā veidā analizators uzņem visus nepieciešamus veikspējas datus un gadījumā, ja kodā izpildes laikā notiek izņēmums, piefiksē arī to.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (5)

Showing the top 5 NuGet packages that depend on Zzdats.Lgp.Common.Apm:

Package Downloads
Zzdats.Lgp.Common.Web

LGP common web components

Zzdats.Lgp.Common.BackgroundService.RabbitMQ

LGP Console Application background service component based on RabbitMQ queue for NetStandard 2.1

Zzdats.Lgp.Common.JsonDB.PostgreSQL

LGP JSON DB component PostgreSQL database implementation

Zzdats.Lgp.Common.ConsoleHost

LGP Console Application base components for NetStandard 2.1

Zzdats.Lgp.Common.BackgroundService.Cron

LGP common component for cron based services

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
10.0.4 134 9/10/2026
10.0.3 126 8/26/2026
10.0.2 485 8/26/2026
8.0.10 91 9/10/2026
8.0.9 548 8/25/2026