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

## ConsumedRequestUriRegistry Class

Keeps the ended flows in the same entity storage the stored requests live in\.

```csharp
public class ConsumedRequestUriRegistry : Abblix.Oidc.Server.Features.Storages.IConsumedRequestUriRegistry
```

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

Implements [IConsumedRequestUriRegistry](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.Storages.IConsumedRequestUriRegistry 'Abblix\.Oidc\.Server\.Features\.Storages\.IConsumedRequestUriRegistry')
### Constructors

## ConsumedRequestUriRegistry\(IEntityStorage, IEntityStorageKeyFactory, TimeProvider\) Constructor {#Abblix.Oidc.Server.Features.Storages.ConsumedRequestUriRegistry.ConsumedRequestUriRegistry(Abblix.Oidc.Server.Features.Storages.IEntityStorage,Abblix.Oidc.Server.Features.Storages.IEntityStorageKeyFactory,System.TimeProvider)}

Keeps the ended flows in the same entity storage the stored requests live in\.

```csharp
public ConsumedRequestUriRegistry(Abblix.Oidc.Server.Features.Storages.IEntityStorage storage, Abblix.Oidc.Server.Features.Storages.IEntityStorageKeyFactory keyFactory, System.TimeProvider timeProvider);
```
#### Parameters

###### `storage` [IEntityStorage](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.Storages.IEntityStorage 'Abblix\.Oidc\.Server\.Features\.Storages\.IEntityStorage') {#Abblix.Oidc.Server.Features.Storages.ConsumedRequestUriRegistry.ConsumedRequestUriRegistry(Abblix.Oidc.Server.Features.Storages.IEntityStorage,Abblix.Oidc.Server.Features.Storages.IEntityStorageKeyFactory,System.TimeProvider).storage}

Where the record is written and read\.

###### `keyFactory` [IEntityStorageKeyFactory](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.Storages.IEntityStorageKeyFactory 'Abblix\.Oidc\.Server\.Features\.Storages\.IEntityStorageKeyFactory') {#Abblix.Oidc.Server.Features.Storages.ConsumedRequestUriRegistry.ConsumedRequestUriRegistry(Abblix.Oidc.Server.Features.Storages.IEntityStorage,Abblix.Oidc.Server.Features.Storages.IEntityStorageKeyFactory,System.TimeProvider).keyFactory}

Names the record\.

###### `timeProvider` [System\.TimeProvider](https://learn.microsoft.com/en-us/dotnet/api/system.timeprovider 'System\.TimeProvider') {#Abblix.Oidc.Server.Features.Storages.ConsumedRequestUriRegistry.ConsumedRequestUriRegistry(Abblix.Oidc.Server.Features.Storages.IEntityStorage,Abblix.Oidc.Server.Features.Storages.IEntityStorageKeyFactory,System.TimeProvider).timeProvider}

Dates the record\.
### Methods

## ConsumedRequestUriRegistry\.IsConsumedAsync\(TenantDefinition, Uri\) Method {#Abblix.Oidc.Server.Features.Storages.ConsumedRequestUriRegistry.IsConsumedAsync(Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition,System.Uri)}

Whether the flow begun with [requestUri](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.Storages.ConsumedRequestUriRegistry#Abblix.Oidc.Server.Features.Storages.ConsumedRequestUriRegistry.IsConsumedAsync(Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition,System.Uri).requestUri 'Abblix\.Oidc\.Server\.Features\.Storages\.ConsumedRequestUriRegistry\.IsConsumedAsync\(Abblix\.Oidc\.Server\.Features\.MultiTenancy\.TenantDefinition, System\.Uri\)\.requestUri') has ended\.

```csharp
public System.Threading.Tasks.Task<bool> IsConsumedAsync(Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition tenant, System.Uri requestUri);
```
#### Parameters

###### `tenant` [TenantDefinition](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition 'Abblix\.Oidc\.Server\.Features\.MultiTenancy\.TenantDefinition') {#Abblix.Oidc.Server.Features.Storages.ConsumedRequestUriRegistry.IsConsumedAsync(Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition,System.Uri).tenant}

The tenant the request URI belongs to\.

###### `requestUri` [System\.Uri](https://learn.microsoft.com/en-us/dotnet/api/system.uri 'System\.Uri') {#Abblix.Oidc.Server.Features.Storages.ConsumedRequestUriRegistry.IsConsumedAsync(Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition,System.Uri).requestUri}

The URN the flow began with\.

Implements [IsConsumedAsync\(TenantDefinition, Uri\)](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.Storages.IConsumedRequestUriRegistry#Abblix.Oidc.Server.Features.Storages.IConsumedRequestUriRegistry.IsConsumedAsync(Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition,System.Uri) 'Abblix\.Oidc\.Server\.Features\.Storages\.IConsumedRequestUriRegistry\.IsConsumedAsync\(Abblix\.Oidc\.Server\.Features\.MultiTenancy\.TenantDefinition, System\.Uri\)')

#### Returns
[System\.Threading\.Tasks\.Task&lt;](https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.task-1 'System\.Threading\.Tasks\.Task\`1')[System\.Boolean](https://learn.microsoft.com/en-us/dotnet/api/system.boolean 'System\.Boolean')[&gt;](https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.task-1 'System\.Threading\.Tasks\.Task\`1')

## ConsumedRequestUriRegistry\.TryConsumeAsync\(TenantDefinition, Uri, DateTimeOffset\) Method {#Abblix.Oidc.Server.Features.Storages.ConsumedRequestUriRegistry.TryConsumeAsync(Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition,System.Uri,System.DateTimeOffset)}

Ends the flow begun with [requestUri](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.Storages.ConsumedRequestUriRegistry#Abblix.Oidc.Server.Features.Storages.ConsumedRequestUriRegistry.TryConsumeAsync(Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition,System.Uri,System.DateTimeOffset).requestUri 'Abblix\.Oidc\.Server\.Features\.Storages\.ConsumedRequestUriRegistry\.TryConsumeAsync\(Abblix\.Oidc\.Server\.Features\.MultiTenancy\.TenantDefinition, System\.Uri, System\.DateTimeOffset\)\.requestUri'), answering whether this call is the one that ended it\.
The entity storage decides between two pages of one flow ending it together, one being told it did: the
default storage decides within one process only, and across several nodes only an `IEntityStorage`
built on the store's own primitive, such as Redis `SET NX` or a unique\-key insert, decides\.

```csharp
public System.Threading.Tasks.Task<bool> TryConsumeAsync(Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition tenant, System.Uri requestUri, System.DateTimeOffset expiresAt);
```
#### Parameters

###### `tenant` [TenantDefinition](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition 'Abblix\.Oidc\.Server\.Features\.MultiTenancy\.TenantDefinition') {#Abblix.Oidc.Server.Features.Storages.ConsumedRequestUriRegistry.TryConsumeAsync(Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition,System.Uri,System.DateTimeOffset).tenant}

The tenant the request URI belongs to\.

###### `requestUri` [System\.Uri](https://learn.microsoft.com/en-us/dotnet/api/system.uri 'System\.Uri') {#Abblix.Oidc.Server.Features.Storages.ConsumedRequestUriRegistry.TryConsumeAsync(Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition,System.Uri,System.DateTimeOffset).requestUri}

The URN the flow began with\.

###### `expiresAt` [System\.DateTimeOffset](https://learn.microsoft.com/en-us/dotnet/api/system.datetimeoffset 'System\.DateTimeOffset') {#Abblix.Oidc.Server.Features.Storages.ConsumedRequestUriRegistry.TryConsumeAsync(Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition,System.Uri,System.DateTimeOffset).expiresAt}

When no page of the flow can be presented any more\.

Implements [TryConsumeAsync\(TenantDefinition, Uri, DateTimeOffset\)](https://www.abblix.com/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.Storages.IConsumedRequestUriRegistry#Abblix.Oidc.Server.Features.Storages.IConsumedRequestUriRegistry.TryConsumeAsync(Abblix.Oidc.Server.Features.MultiTenancy.TenantDefinition,System.Uri,System.DateTimeOffset) 'Abblix\.Oidc\.Server\.Features\.Storages\.IConsumedRequestUriRegistry\.TryConsumeAsync\(Abblix\.Oidc\.Server\.Features\.MultiTenancy\.TenantDefinition, System\.Uri, System\.DateTimeOffset\)')

#### Returns
[System\.Threading\.Tasks\.Task&lt;](https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.task-1 'System\.Threading\.Tasks\.Task\`1')[System\.Boolean](https://learn.microsoft.com/en-us/dotnet/api/system.boolean 'System\.Boolean')[&gt;](https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.task-1 'System\.Threading\.Tasks\.Task\`1')  
`true` when the flow had not ended and this call ended it; `false` when it had ended
            already\.
