IAWSXRayRecorderTraceMethodAsync Method (String, FuncTask) |
Trace a given asynchronous method that returns no value. A subsegment will be created for this method.
Any exception thrown by the method will be captured.
Namespace:
Amazon.XRay.Recorder.Core
Assembly:
AWSXRayRecorder.Core (in AWSXRayRecorder.Core.dll) Version: 2.14.0+018bfa65877dd72e346735bad4d7ad46f217da09
Syntax Task TraceMethodAsync(
string name,
Func<Task> method
)
Parameters
- name
- Type: SystemString
The name of the trace subsegment for the method - method
- Type: SystemFuncTask
The method to be traced
Return Value
Type:
TaskSee Also