Eliassen.Documents.Abstractions 0.1.85

This package has a SemVer 2.0.0 package version: 0.1.85+2.
dotnet add package Eliassen.Documents.Abstractions --version 0.1.85                
NuGet\Install-Package Eliassen.Documents.Abstractions -Version 0.1.85                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Eliassen.Documents.Abstractions" Version="0.1.85" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Eliassen.Documents.Abstractions --version 0.1.85                
#r "nuget: Eliassen.Documents.Abstractions, 0.1.85"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Eliassen.Documents.Abstractions as a Cake Addin
#addin nuget:?package=Eliassen.Documents.Abstractions&version=0.1.85

// Install Eliassen.Documents.Abstractions as a Cake Tool
#tool nuget:?package=Eliassen.Documents.Abstractions&version=0.1.85                

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • 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.Azure.StorageAccount

Package Description

Eliassen.Documents

Package Description

Eliassen.MysticMind

Package Description

Eliassen.Markdig

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.1.85 53 10/10/2024
0.1.84 45 10/10/2024
0.1.83 54 9/27/2024
0.1.82 217 8/23/2024
0.1.81 189 8/1/2024
0.1.81-dev-gh-pipline.3 51 8/1/2024