FileService Class

FileService Class

public class FileService: RedaktServiceBase, IFileService

Inheritance  Object RedaktServiceBase FileService

Implements  IFileService

Constructors

Name Description
FileService(...) Default constructor. Services are injected by the IoC container.

Methods

Name Description
GetFileDescriptorAsync(string) Retrieves a file descriptor by id.
GetFileDescriptorByUrlAsync(string) Retrieves a file descriptor by url.
ReplaceFileAsync(FileDescriptor, Stream, string, string, bool) Replaces an existing file blob. The modified file descriptor is not yet saved to the data store, this has to be done by the calling code.
SaveFileDescriptorAsync(FileDescriptor) Saves a file descriptor to the data store. This does not save or update the file blob itself.
SaveFileDescriptorAsync(IEnumerable<FileDescriptor>) Saves file descriptors to the data store. This does not save or update the file blobs itself.
UploadFileAsync(Stream, string, string, bool) Uploads a file blob to the file store and returns the file descriptor. The file descriptor is not yet saved to the data store, this has to be done by the calling code.