Table of Contents

Class TransientDocumentStore

Namespace
The.Documents
Assembly
Instagile.dll
public sealed class TransientDocumentStore : IDocumentStore
Inheritance
TransientDocumentStore
Implements
Inherited Members

Fields

Data

public readonly Dictionary<Guid, byte[]> Data

Field Value

Dictionary<Guid, byte[]>

Files

public readonly Dictionary<Guid, FileMetadata> Files

Field Value

Dictionary<Guid, FileMetadata>

Images

public readonly Dictionary<Guid, ImageMetadata> Images

Field Value

Dictionary<Guid, ImageMetadata>

Methods

AddAccessRules(CallbackEnvironment, IServices, params IReadOnlyList<NewAccessRule>)

public Task AddAccessRules(CallbackEnvironment environment, IServices services, params IReadOnlyList<NewAccessRule> newRules)

Parameters

environment CallbackEnvironment
services IServices
newRules IReadOnlyList<NewAccessRule>

Returns

Task

FindImageThumbnail(Guid, int, int)

public Task<Guid?> FindImageThumbnail(Guid id, int maxWidth, int maxHeight)

Parameters

id Guid
maxWidth int
maxHeight int

Returns

Task<Guid?>

GetDocumentData(CallbackEnvironment, IServices, Guid, DocumentAccessAssertion)

public Task<Stream?> GetDocumentData(CallbackEnvironment environment, IServices services, Guid id, DocumentAccessAssertion access)

Parameters

environment CallbackEnvironment
services IServices
id Guid
access DocumentAccessAssertion

Returns

Task<Stream>

GetFileMetadata(CallbackEnvironment, IServices, Guid, DocumentAccessAssertion)

public Task<FileMetadata?> GetFileMetadata(CallbackEnvironment environment, IServices services, Guid id, DocumentAccessAssertion access)

Parameters

environment CallbackEnvironment
services IServices
id Guid
access DocumentAccessAssertion

Returns

Task<FileMetadata>

GetImageMetadata(CallbackEnvironment, IServices, Guid, DocumentAccessAssertion)

public Task<ImageMetadata?> GetImageMetadata(CallbackEnvironment environment, IServices services, Guid id, DocumentAccessAssertion access)

Parameters

environment CallbackEnvironment
services IServices
id Guid
access DocumentAccessAssertion

Returns

Task<ImageMetadata>

PutFile(CallbackEnvironment, IServices, Stream, string, string, DocumentAccessRule, IProgress<long>?)

public Task<Guid> PutFile(CallbackEnvironment environment, IServices services, Stream data, string originalFilename, string mimeType, DocumentAccessRule rule, IProgress<long>? progress = null)

Parameters

environment CallbackEnvironment
services IServices
data Stream
originalFilename string
mimeType string
rule DocumentAccessRule
progress IProgress<long>

Returns

Task<Guid>

PutImage(CallbackEnvironment, IServices, Stream, string, string, int, int, Guid?, DocumentAccessAssertion?, DocumentAccessRule, IProgress<long>?)

public Task<Guid> PutImage(CallbackEnvironment environment, IServices services, Stream data, string originalFilename, string mimeType, int width, int height, Guid? thumbnailFor, DocumentAccessAssertion? thumbnailAccess, DocumentAccessRule rule, IProgress<long>? progress = null)

Parameters

environment CallbackEnvironment
services IServices
data Stream
originalFilename string
mimeType string
width int
height int
thumbnailFor Guid?
thumbnailAccess DocumentAccessAssertion
rule DocumentAccessRule
progress IProgress<long>

Returns

Task<Guid>