#### [Abblix\.Oidc\.Server](https://www.abblix.com/en/docs/api/abblix-oidc-server 'index')
### [Abblix\.Oidc\.Server\.Features\.ResourceIndicators](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.ResourceIndicators 'Abblix\.Oidc\.Server\.Features\.ResourceIndicators')

## ResourceManager Class

In\-memory [IResourceManager](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.ResourceIndicators.IResourceManager 'Abblix\.Oidc\.Server\.Features\.ResourceIndicators\.IResourceManager') backed by [Resources](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Common.Configuration.OidcOptions#Abblix.Oidc.Server.Common.Configuration.OidcOptions.Resources 'Abblix\.Oidc\.Server\.Common\.Configuration\.OidcOptions\.Resources')\. Indexes
the configured [ResourceDefinition](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Common.Constants.ResourceDefinition 'Abblix\.Oidc\.Server\.Common\.Constants\.ResourceDefinition') entries by their absolute URI for O\(1\) lookup
during RFC 8707 resource indicator validation\.

```csharp
public class ResourceManager : Abblix.Oidc.Server.Features.ResourceIndicators.IResourceManager
```

Inheritance [System\.Object](https://learn.microsoft.com/en-us/dotnet/api/system.object 'System\.Object') → ResourceManager

Implements [IResourceManager](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.ResourceIndicators.IResourceManager 'Abblix\.Oidc\.Server\.Features\.ResourceIndicators\.IResourceManager')

### Remarks
The dictionary is built once at construction time from the snapshot of options; subsequent
changes to the options instance are not reflected\.
### Constructors

## ResourceManager\(IOptions\<OidcOptions\>\) Constructor {#Abblix.Oidc.Server.Features.ResourceIndicators.ResourceManager.ResourceManager(Microsoft.Extensions.Options.IOptions_Abblix.Oidc.Server.Common.Configuration.OidcOptions_)}

In\-memory [IResourceManager](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.ResourceIndicators.IResourceManager 'Abblix\.Oidc\.Server\.Features\.ResourceIndicators\.IResourceManager') backed by [Resources](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Common.Configuration.OidcOptions#Abblix.Oidc.Server.Common.Configuration.OidcOptions.Resources 'Abblix\.Oidc\.Server\.Common\.Configuration\.OidcOptions\.Resources')\. Indexes
the configured [ResourceDefinition](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Common.Constants.ResourceDefinition 'Abblix\.Oidc\.Server\.Common\.Constants\.ResourceDefinition') entries by their absolute URI for O\(1\) lookup
during RFC 8707 resource indicator validation\.

```csharp
public ResourceManager(Microsoft.Extensions.Options.IOptions<Abblix.Oidc.Server.Common.Configuration.OidcOptions> options);
```
#### Parameters

###### `options` [Microsoft\.Extensions\.Options\.IOptions&lt;](https://learn.microsoft.com/en-us/dotnet/api/microsoft.extensions.options.ioptions-1 'Microsoft\.Extensions\.Options\.IOptions\`1')[OidcOptions](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Common.Configuration.OidcOptions 'Abblix\.Oidc\.Server\.Common\.Configuration\.OidcOptions')[&gt;](https://learn.microsoft.com/en-us/dotnet/api/microsoft.extensions.options.ioptions-1 'Microsoft\.Extensions\.Options\.IOptions\`1') {#Abblix.Oidc.Server.Features.ResourceIndicators.ResourceManager.ResourceManager(Microsoft.Extensions.Options.IOptions_Abblix.Oidc.Server.Common.Configuration.OidcOptions_).options}

The OIDC options containing resource definitions to be registered\.

### Remarks
The dictionary is built once at construction time from the snapshot of options; subsequent
changes to the options instance are not reflected\.
### Methods

## ResourceManager\.TryGet\(Uri, ResourceDefinition\) Method {#Abblix.Oidc.Server.Features.ResourceIndicators.ResourceManager.TryGet(System.Uri,Abblix.Oidc.Server.Common.Constants.ResourceDefinition)}

Attempts to retrieve the resource definition associated with the specified URI\.

```csharp
public bool TryGet(System.Uri resource, out Abblix.Oidc.Server.Common.Constants.ResourceDefinition definition);
```
#### Parameters

###### `resource` [System\.Uri](https://learn.microsoft.com/en-us/dotnet/api/system.uri 'System\.Uri') {#Abblix.Oidc.Server.Features.ResourceIndicators.ResourceManager.TryGet(System.Uri,Abblix.Oidc.Server.Common.Constants.ResourceDefinition).resource}

The URI identifying the resource for which the definition is requested\.

###### `definition` [ResourceDefinition](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Common.Constants.ResourceDefinition 'Abblix\.Oidc\.Server\.Common\.Constants\.ResourceDefinition') {#Abblix.Oidc.Server.Features.ResourceIndicators.ResourceManager.TryGet(System.Uri,Abblix.Oidc.Server.Common.Constants.ResourceDefinition).definition}

When this method returns, contains the resource definition associated with
            the specified URI, if the resource is found; otherwise, null\. This parameter is passed uninitialized\.

Implements [TryGet\(Uri, ResourceDefinition\)](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.ResourceIndicators.IResourceManager#Abblix.Oidc.Server.Features.ResourceIndicators.IResourceManager.TryGet(System.Uri,Abblix.Oidc.Server.Common.Constants.ResourceDefinition) 'Abblix\.Oidc\.Server\.Features\.ResourceIndicators\.IResourceManager\.TryGet\(System\.Uri, Abblix\.Oidc\.Server\.Common\.Constants\.ResourceDefinition\)')

#### Returns
[System\.Boolean](https://learn.microsoft.com/en-us/dotnet/api/system.boolean 'System\.Boolean')  
`true` if the resource definition is found; otherwise, `false`\.
