Method OpenAsync
OpenAsync(FileId, FileAccessPattern)
Opens a file stream for an existing file in the repository using the recommended sharing options.
Declaration
public ValueTask<FileStream> OpenAsync(FileId fileId, FileAccessPattern accessPattern)
Parameters
| Type | Name | Description |
|---|---|---|
| FileId | fileId | The ID of the file. |
| FileAccessPattern | accessPattern | How the caller is going to read the stream. The file is opened with the matching caching hint, as Open(FileAccessPattern) describes. |
Returns
| Type | Description |
|---|---|
| ValueTask<FileStream> |
Exceptions
| Type | Condition |
|---|---|
| RepoFileNotFoundException | File with the specified |