> ## Documentation Index
> Fetch the complete documentation index at: https://docs.resq.software/llms.txt
> Use this file to discover all available pages before exploring further.

# ResQ.Core.HceClient.ReportDetectionAsync(ResQ.Core.Detection,string,System.Threading.CancellationToken)

### [ResQ.Core](./ResQ.Core.md "ResQ.Core").[HceClient](./ResQ.Core.HceClient.md "ResQ.Core.HceClient")

## HceClient.ReportDetectionAsync(Detection, string, CancellationToken) Method

Reports a critical detection to the HCE service.

```csharp theme={null}
public System.Threading.Tasks.Task<bool> ReportDetectionAsync(ResQ.Core.Detection detection, string droneId, System.Threading.CancellationToken ct=default(System.Threading.CancellationToken));
```

#### Parameters

<a name="ResQ.Core.HceClient.ReportDetectionAsync(ResQ.Core.Detection,string,System.Threading.CancellationToken).detection" />

`detection` [Detection](./ResQ.Core.Detection.md "ResQ.Core.Detection")

The detection to report.

<a name="ResQ.Core.HceClient.ReportDetectionAsync(ResQ.Core.Detection,string,System.Threading.CancellationToken).droneId" />

`droneId` [System.String](https://learn.microsoft.com/en-us/dotnet/api/system.string "System.String")

ID of the drone that made the detection.

<a name="ResQ.Core.HceClient.ReportDetectionAsync(ResQ.Core.Detection,string,System.Threading.CancellationToken).ct" />

`ct` [System.Threading.CancellationToken](https://learn.microsoft.com/en-us/dotnet/api/system.threading.cancellationtoken "System.Threading.CancellationToken")

Cancellation token.

#### Returns

[System.Threading.Tasks.Task\<](https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.task-1 "System.Threading.Tasks.Task`1")[System.Boolean](https://learn.microsoft.com/en-us/dotnet/api/system.boolean "System.Boolean")[>](https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.task-1 "System.Threading.Tasks.Task`1")\
True if the report was accepted.
