Method TraceAsync
TraceAsync(UtilityTraceParameters, CancellationToken)
Asynchronously begins a trace with the supplied UtilityTraceParameters.
Declaration
public Task<IEnumerable<UtilityTraceResult>> TraceAsync(UtilityTraceParameters traceParameters, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| UtilityTraceParameters | traceParameters | The input arguments to the trace. |
| CancellationToken | cancellationToken | A CancellationToken with which to cancel the operation if required. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<IEnumerable<UtilityTraceResult>> | A task that represents the asynchronous trace operation on feature server. The value of the task result is IEnumerable<T> |
Remarks
If the TraceType in UtilityTraceParameters is a subnetwork-based trace, it must have a UtilityDomainNetwork set in the UtilityTraceConfiguration returned from TraceConfiguration.
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.12 - 100.15 |
| .NET 6.0 | 100.13 - 100.15 |
| .NET 6.0 Windows | 100.13 - 100.15 |
| .NET Framework | 100.12 - 100.15 |
| .NET 5 | 100.12 |
| .NET Core 3.1 | 100.12 |
| Xamarin.Android | 100.12 - 100.15 |
| Xamarin.iOS | 100.12 - 100.15 |
| UWP | 100.12 - 100.14 |
TraceAsync(UtilityTraceParameters)
Asynchronously begins a trace with the supplied UtilityTraceParameters.
Declaration
public Task<IEnumerable<UtilityTraceResult>> TraceAsync(UtilityTraceParameters traceParameters)
Parameters
| Type | Name | Description |
|---|---|---|
| UtilityTraceParameters | traceParameters | The input arguments to the trace. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<IEnumerable<UtilityTraceResult>> | A task that represents the asynchronous trace operation on feature server. The value of the task result is IEnumerable<T> |
Remarks
If the TraceType in UtilityTraceParameters is a subnetwork-based trace, it must have a UtilityDomainNetwork set in the UtilityTraceConfiguration returned from TraceConfiguration.
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.6 - 100.15 |
| .NET 6.0 | 100.13 - 100.15 |
| .NET 6.0 Windows | 100.13 - 100.15 |
| .NET Framework | 100.6 - 100.15 |
| .NET 5 | 100.10 - 100.12 |
| .NET Core 3.1 | 100.7 - 100.12 |
| Xamarin.Android | 100.6 - 100.15 |
| Xamarin.iOS | 100.6 - 100.15 |
| UWP | 100.6 - 100.15 |