# Identity Domain Provider

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

## Summary

Represents a repository service for managing assigning authorities.

### Description

This specialized [IRepositoryService](http://santesuite.org/assets/doc/net/html/T_SanteDB_Core_Services_IRepositoryService.htm) is intended to add functionality to make the management of identity domains ([IdentityDomain](http://santesuite.org/assets/doc/net/html/T_SanteDB_Core_Model_DataTypes_IdentityDomain.htm)) objects simpler by including methods for getting domains by name and URI

## Operations

| Operation | Response/Return | Input/Parameter     | Description   |
| --------- | --------------- | ------------------- | ------------- |
| Get       | IdentityDomain  | *String* **domain** | Get by domain |
| Get       | IdentityDomain  | *Uri* **uri**       | Get by domain |

## Implementations

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

Represents a repository service for managing assigning authorities.

#### Service Registration

```markup
...
<section xsi:type="ApplicationServiceContextConfigurationSection" threadPoolSize="4">
	<serviceProviders>
		...
		<add type="SanteDB.Core.Services.Impl.Repository.LocalIdentityDomainRepository, 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 MyIdentityDomainRepositoryService : SanteDB.Core.Services.IIdentityDomainRepositoryService { 
	public String ServiceName => "My own IIdentityDomainRepositoryService service";
	/// <summary>
	/// Get by domain
	/// </summary>
	public IdentityDomain Get(String domain){
		throw new System.NotImplementedException();
	}
	/// <summary>
	/// Get by domain
	/// </summary>
	public IdentityDomain Get(Uri uri){
		throw new System.NotImplementedException();
	}
}
```

## References

* [IIdentityDomainRepositoryService C# Documentation](http://santesuite.org/assets/doc/net/html/T_SanteDB_Core_Services_IIdentityDomainRepositoryService.htm)
* [LocalIdentityDomainRepository C# Documentation](http://santesuite.org/assets/doc/net/html/T_SanteDB_Core_Services_Impl_Repository_LocalIdentityDomainRepository.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/identity-domain-provider.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.
