> For the complete documentation index, see [llms.txt](https://help.santesuite.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.santesuite.org/developers/server-plugins/implementing-.net-features/service-definitions/repository-service-with-cancellation-support.md).

# 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)
