Eliassen.Documents.Abstractions
0.1.84
See the version list below for details.
dotnet add package Eliassen.Documents.Abstractions --version 0.1.84
NuGet\Install-Package Eliassen.Documents.Abstractions -Version 0.1.84
<PackageReference Include="Eliassen.Documents.Abstractions" Version="0.1.84" />
paket add Eliassen.Documents.Abstractions --version 0.1.84
#r "nuget: Eliassen.Documents.Abstractions, 0.1.84"
// Install Eliassen.Documents.Abstractions as a Cake Addin #addin nuget:?package=Eliassen.Documents.Abstractions&version=0.1.84 // Install Eliassen.Documents.Abstractions as a Cake Tool #tool nuget:?package=Eliassen.Documents.Abstractions&version=0.1.84
Eliassen.Documents.Abstractions
Overview
The Eliassen.Documents.Abstractions namespace provides interfaces and attributes for interacting with document-related functionalities such as blob containers, document conversion, content type detection, and document type management.
Key Interfaces and Attributes
- BlobContainerAttribute: Configuration attribute for Blob Containers, specifying the container name.
- IBlobContainerFactory: Factory interface for building blob containers by name or type reference.
- IBlobContainerProvider: Interface for implementing a blob container for a particular provider type.
- IBlobContainerProviderFactory: Factory interface for creating a blob container by name for a specific provider type.
- IDocumentConversionHandler: Interface for a handler responsible for document conversion, specifying supported source and destination content types.
- IBlobContainer: Interface for interacting with blob containers, providing methods for content retrieval, storage, and deletion.
- IDocumentConversion: Interface for a service responsible for document conversion, with a method for converting documents from one format to another.
- IDocumentTypeTools: Interface providing tools for working with document types, including content type detection and retrieval of document types by file extension or header.
- IContentTypeDetector: Interface for detecting content type from a stream.
- IDocumentType: Interface representing a document type, providing information such as supported content types, file extensions, and file headers.
Key Models
- ContentMetaDataReference: Represents a reference to content metadata, including content type, file name, and metadata.
- ContentReference: Represents a reference to content, containing information such as content type, file name, and content itself.
- DocumentType: Represents a document type, including its name, supported content types, file extensions, and file header.
- IDocumentType: Interface representing a document type, providing information such as name, supported content types, file extensions, and file headers.
Getting Started
Interfaces in the Eliassen.Documents.Abstractions namespace provide contracts for implementing various document-related functionalities. Implement these interfaces in your application to integrate document management features such as blob storage, document conversion, and content type detection.
Example Usage
// Example of implementing IBlobContainerProvider interface
public class MyBlobContainerProvider : IBlobContainerProvider
{
public string ContainerName { get; }
public MyBlobContainerProvider(string containerName)
{
ContainerName = containerName;
}
public IBlobContainer CreateBlobContainer()
{
// Implementation to create a blob container
}
}
// Example of using IDocumentConversion interface
public class MyDocumentConversionService : IDocumentConversion
{
public async Task ConvertAsync(Stream source, string sourceContentType, Stream destination, string destinationContentType)
{
// Implementation of document conversion logic
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net8.0
- No dependencies.
NuGet packages (8)
Showing the top 5 NuGet packages that depend on Eliassen.Documents.Abstractions:
Package | Downloads |
---|---|
Eliassen.Apache.Tika
Package Description |
|
Eliassen.Documents
Package Description |
|
Eliassen.MysticMind
Package Description |
|
Eliassen.Azure.StorageAccount
Package Description |
|
Eliassen.Markdig
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.