# OfficeWorkflowOutputRecoveryStore

Stores bounded, private recovery artifacts before non-atomic provider publication.

Class 

`OfficeIMO.Workflows`

**Namespace**

`OfficeIMO.Workflows`

**Assembly**

`OfficeIMO.Workflows`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[OfficeWorkflowOutputRecoveryStore.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Workflows/OfficeWorkflowOutputRecoveryStore.cs#L18)

**Modifiers**

sealed

Stores bounded, private recovery artifacts before non-atomic provider publication.

## Inheritance

- object
- OfficeWorkflowOutputRecoveryStore

## Usage

Explore 2 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 1

- Property [OfficeWorkflowStreamOutput.RecoveryStore](/api/workflows/officeimo-workflows-officeworkflowstreamoutput/#property-recoverystore)

### Accepted by parameters 1

- Constructor [OfficeWorkflowStreamOutput.OfficeWorkflowStreamOutput](/api/workflows/officeimo-workflows-officeworkflowstreamoutput/#constructor-ctor-string-func-system-threading-cancellationtoken-system-threading-tasks-task-system-io-stream-func-system-threading-cancellationtoken-system-threading-tasks-task-system-io-stream-officeimo-workflows-officeworkflowoutputrecoverystore-func-system-threading-cancellationtoken-system-threading-tasks-task-system-string) parameter `recoveryStore`

Filter members 

Show inherited

## Constructors

`public OfficeWorkflowOutputRecoveryStore(string directory, long maximumRetainedBytes = 1073741824)` [#](#constructor-ctor-string-int64)

[OfficeWorkflowOutputRecoveryStore.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Workflows/OfficeWorkflowOutputRecoveryStore.cs#L18)

Creates a store under a host-selected local directory. Admission is bounded across processes.

Parameters

**directory string required**

**maximumRetainedBytes long = 1073741824 optional**

## Methods

`public void Discard(OfficeWorkflowOutputRecovery recovery)` [#](#method-discard-officeimo-workflows-officeworkflowoutputrecovery)

[OfficeWorkflowOutputRecoveryStore.cs:57](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Workflows/OfficeWorkflowOutputRecoveryStore.cs#L57)

Deletes a recovery copy after the user explicitly discards it. The provider destination is never modified.

Parameters

**recovery OfficeIMO.Workflows.OfficeWorkflowOutputRecovery required**

`public IReadOnlyList<OfficeWorkflowOutputRecovery> GetRecoveries()` [#](#method-getrecoveries)

[OfficeWorkflowOutputRecoveryStore.cs:31](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Workflows/OfficeWorkflowOutputRecoveryStore.cs#L31)

Lists available records, excluding active publications and malformed records. Contents are verified on demand.

Returns

`IReadOnlyList<OfficeWorkflowOutputRecovery>`

`public async Task VerifyAsync(OfficeWorkflowOutputRecovery recovery, CancellationToken token = default)` [#](#method-verifyasync-officeimo-workflows-officeworkflowoutputrecovery-threading-cancellationtoken)

Verifies the current local copy against its stored length and fingerprint before a host opens it.

Parameters

**recovery OfficeIMO.Workflows.OfficeWorkflowOutputRecovery required**

**token System.Threading.CancellationToken = default optional**

Returns

`Task`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public string DirectoryPath { get; }` [#](#property-directorypath)

[OfficeWorkflowOutputRecoveryStore.cs:25](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Workflows/OfficeWorkflowOutputRecoveryStore.cs#L25)

Gets the local storage root.

`public long MaximumRetainedBytes { get; }` [#](#property-maximumretainedbytes)

[OfficeWorkflowOutputRecoveryStore.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Workflows/OfficeWorkflowOutputRecoveryStore.cs#L27)

Gets the aggregate artifact admission limit.

<!-- PowerForge markdown artifact sha256:E012A7BA90C5921F3CF4E81AAFB16EA23DF7F45CC8C3EA5937932EF30F6FE2FB -->
