Click or drag to resize

IAWSXRayRecorderTraceMethodTResult Method (String, FuncTResult)

Trace a given method with return value.

Namespace:  Amazon.XRay.Recorder.Core
Assembly:  AWSXRayRecorder.Core (in AWSXRayRecorder.Core.dll) Version: 2.14.0+018bfa65877dd72e346735bad4d7ad46f217da09
Syntax
C#
TResult TraceMethod<TResult>(
	string name,
	Func<TResult> method
)

Parameters

name
Type: SystemString
The name of the trace subsegment for the method
method
Type: SystemFuncTResult
The method to be traced

Type Parameters

TResult
The type of the return value of the method that this delegate encapsulates

Return Value

Type: TResult
The return value of the given method
See Also