> 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/iextensiontyperepository.md).

# IExtensionTypeRepository

`IExtensionTypeRepository` in assembly SanteDB.Core.Api version 3.0.1980.0

## Summary

Represents the extension type repository

## Operations

| Operation | Response/Return | Input/Parameter | Description                      |
| --------- | --------------- | --------------- | -------------------------------- |
| Get       | ExtensionType   | *Uri* **uri**   | Get the xtension type my its url |

## Implementations

### LocalExtensionTypeRepository - (SanteDB.Core.Api)

Local extension types

#### Service Registration

```markup
...
<section xsi:type="ApplicationServiceContextConfigurationSection" threadPoolSize="4">
	<serviceProviders>
		...
		<add type="SanteDB.Core.Services.Impl.Repository.LocalExtensionTypeRepository, SanteDB.Core.Api, Version=3.0.1980.0, Culture=neutral, PublicKeyToken=null" />
		...
	</serviceProviders>
```

## Example Implementation

```csharp
/// Example Implementation
using SanteDB.Core.Services;
/// Other usings here
public class MyExtensionTypeRepository : SanteDB.Core.Services.IExtensionTypeRepository { 
	public String ServiceName => "My own IExtensionTypeRepository service";
	/// <summary>
	/// Get the xtension type my its url
	/// </summary>
	public ExtensionType Get(Uri uri){
		throw new System.NotImplementedException();
	}
}
```

## References

* [IExtensionTypeRepository C# Documentation](http://santesuite.org/assets/doc/net/html/T_SanteDB_Core_Services_IExtensionTypeRepository.htm)
* [LocalExtensionTypeRepository C# Documentation](http://santesuite.org/assets/doc/net/html/T_SanteDB_Core_Services_Impl_Repository_LocalExtensionTypeRepository.htm)
