Eliassen.Common.Extensions 0.1.84

This package has a SemVer 2.0.0 package version: 0.1.84+9.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Eliassen.Common.Extensions --version 0.1.84                
NuGet\Install-Package Eliassen.Common.Extensions -Version 0.1.84                
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.Common.Extensions" Version="0.1.84" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Eliassen.Common.Extensions --version 0.1.84                
#r "nuget: Eliassen.Common.Extensions, 0.1.84"                
#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.Common.Extensions as a Cake Addin
#addin nuget:?package=Eliassen.Common.Extensions&version=0.1.84

// Install Eliassen.Common.Extensions as a Cake Tool
#tool nuget:?package=Eliassen.Common.Extensions&version=0.1.84                

Eliassen.Common.Extensions

This library provides a set of extension methods and classes for configuring common external services and identity providers in .NET applications.

Classes

Common.Extensions.ExternalExtensionBuilder

Represents a builder for configuring external extensions.

Common.Extensions.IdentityExtensionBuilder

Represents a builder for configuring identity extensions.

Common.Extensions.IdentityProviders

Specifies different identity providers for authentication.

Common.Extensions.ServiceCollectionExtensions

Provides extension methods for configuring common external services.

Methods

TryCommonExternalExtensions

Tries to add common external services to the specified IServiceCollection.

  • Parameters:
    • services: The instance of IServiceCollection.
    • configuration: The configuration containing settings for external services.
    • identityBuilder: Optional builder for configuring identity extensions. Default is null.
    • externalBuilder: Optional builder for configuring external extensions. Default is null.
  • Return value: The updated instance of IServiceCollection.

Properties

MongoDatabaseConfigurationSection

Gets or sets the configuration section name for MongoDB database options. Default is "MongoDatabaseOptions".

AzureBlobProviderOptionSection

Gets or sets the configuration section name for Azure Blob Container options. Default is "AzureBlobContainerOptions".

SmtpConfigurationSection

Gets or sets the configuration section name for SMTP client options (MailKit). Default is "MailKitSmtpClientOptions".

ImapConfigurationSection

Gets or sets the configuration section name for IMAP client options (MailKit). Default is "MailKitImapClientOptions".

SentenceEmbeddingOptionSection

Gets or sets the configuration section name for SentenceEmbeddingOptions.

QdrantOptionSection

Gets or sets the configuration section name for Qdrant options.

OpenSearchOptionSection

Gets or sets the configuration section name for OpenSearch options.

OllamaApiClientOptionSection

Gets or sets the configuration section name for Ollama Api Client options.

GroqCloudApiClientOptionSection

Gets or sets the configuration section name for GroqCloud Api Client options.

ApacheTikaClientOptionSection

Gets or sets the configuration section name of Apache Tika Client options.

IdentityProvider

Gets or sets the identity provider to use. Specifies the identity provider for authentication. The default value is None.

MicrosoftIdentityConfigurationSection

Gets or sets the configuration section name for Microsoft Identity options. Default is "MicrosoftIdentityOptions".

KeycloakIdentityConfigurationSection

Gets or sets the configuration section name for Keycloak identity options. Default is "KeycloakIdentityOptions".

Identity Providers

None

Represents no specific identity provider.

AzureB2C

Represents the Azure B2C identity provider.

Keycloak

Represents the Keycloak identity provider.

Getting Started

To use this library, add the following NuGet package to your project:

Install-Package Eliassen.Common.Extensions

Then, in your startup class, use the TryCommonExternalExtensions method to configure the external services and identity providers:

public void ConfigureServices(IServiceCollection services)
{
    services.TryCommonExternalExtensions(Configuration, new IdentityExtensionBuilder(), new ExternalExtensionBuilder());
}

This library is designed to be flexible and extensible, so feel free to modify or extend it to suit your specific needs.

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.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Eliassen.Common.Extensions:

Package Downloads
Eliassen.Common.Complete

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.1.85 47 10/10/2024
0.1.84 40 10/10/2024
0.1.83 45 9/27/2024
0.1.82 144 8/23/2024
0.1.81 105 8/1/2024
0.1.81-dev-gh-pipline.3 48 8/1/2024