Click or drag to resize

DomainSystemHostExtensionsStartPerformanceMeasurement Method

Starts new performance measurement.

Namespace:  Aloe.SystemFrameworks.Domain.Core
Assembly:  Aloe.SystemFrameworks.Domain (in Aloe.SystemFrameworks.Domain.dll) Version: 20.1.3.5
Syntax
public static PerformanceMeasurementNode StartPerformanceMeasurement(
	this IDomainSystemHost host,
	string applicationName,
	string metricKind,
	string metricName,
	PerformanceLogType writeTo = 1
)

Parameters

host
Type: Aloe.SystemFrameworks.Domain.CoreIDomainSystemHost
The host to which the performance logging should be done.
applicationName
Type: SystemString
Name of the application.
metricKind
Type: SystemString
The kind of the performance metric.
metricName
Type: SystemString
The name of the metric.
writeTo (Optional)
Type: Aloe.SystemFrameworks.Domain.CorePerformanceLogType
The target log type.

Return Value

Type: PerformanceMeasurementNode
A new performance measuring instance that implements IDisposable.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IDomainSystemHost. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks
The method returns an IDisposable object that should be put as argument of 'using' statement. The measured code should be inside the using block.
See Also