# Repository Service with Cancellation Support

`ICancelRepositoryService&lt;TModel>` in assembly SanteDB.Core.Api version 3.0.1980.0

## Summary

Represents a repository that can cancel an [Act](http://santesuite.org/assets/doc/net/html/T_SanteDB_Core_Model_Acts_Act.htm) that is in progress

## Operations

| Operation | Response/Return | Input/Parameter | Description           |
| --------- | --------------- | --------------- | --------------------- |
| Cancel    | TModel          | *Guid* **id**   | Cancels the specified |

## Implementations

### GenericLocalActRepository\<TAct> - (SanteDB.Core.Api)

Represents an act repository service.

{% hint style="info" %}
This service implementation is abstract or is a generic definition. It is intended to be implemented or constructed at runtime from other services and cannot be used directly
{% endhint %}

\# Example Implementation \`\`\`csharp /// Example Implementation using SanteDB.Core.Services; /// Other usings here public class MyCancelRepositoryService : SanteDB.Core.Services.ICancelRepositoryService { public String ServiceName => "My own ICancelRepositoryService\`1 service"; ////// Cancels the specified ///public TModel Cancel(Guid id){ throw new System.NotImplementedException(); } } \`\`\`

## References

* [ICancelRepositoryService\<TModel> C# Documentation](http://santesuite.org/assets/doc/net/html/T_SanteDB_Core_Services_ICancelRepositoryService_1.htm)
* [GenericLocalActRepository\<TAct> C# Documentation](http://santesuite.org/assets/doc/net/html/T_SanteDB_Core_Services_Impl_Repository_GenericLocalActRepository_1.htm)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.santesuite.org/developers/server-plugins/implementing-.net-features/service-definitions/repository-service-with-cancellation-support.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
