| 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
Syntaxpublic static PerformanceMeasurementNode StartPerformanceMeasurement(
	this IDomainSystemHost host,
	string applicationName,
	string metricKind,
	string metricName,
	PerformanceLogType writeTo = 1
)
<ExtensionAttribute>
Public Shared Function StartPerformanceMeasurement ( 
	host As IDomainSystemHost,
	applicationName As String,
	metricKind As String,
	metricName As String,
	Optional writeTo As PerformanceLogType = 1
) As PerformanceMeasurementNode
public:
[ExtensionAttribute]
static PerformanceMeasurementNode^ StartPerformanceMeasurement(
	IDomainSystemHost^ host, 
	String^ applicationName, 
	String^ metricKind, 
	String^ metricName, 
	PerformanceLogType^ writeTo = 1
)
[<ExtensionAttribute>]
static member StartPerformanceMeasurement : 
        host : IDomainSystemHost * 
        applicationName : string * 
        metricKind : string * 
        metricName : string * 
        ?writeTo : PerformanceLogType 
(* Defaults:
        let _writeTo = defaultArg writeTo 1
*)
-> PerformanceMeasurementNode 
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
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
See Also