Eliassen.Common.Extensions
0.1.85
dotnet add package Eliassen.Common.Extensions --version 0.1.85
NuGet\Install-Package Eliassen.Common.Extensions -Version 0.1.85
<PackageReference Include="Eliassen.Common.Extensions" Version="0.1.85" />
paket add Eliassen.Common.Extensions --version 0.1.85
#r "nuget: Eliassen.Common.Extensions, 0.1.85"
// Install Eliassen.Common.Extensions as a Cake Addin #addin nuget:?package=Eliassen.Common.Extensions&version=0.1.85 // Install Eliassen.Common.Extensions as a Cake Tool #tool nuget:?package=Eliassen.Common.Extensions&version=0.1.85
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 ofIServiceCollection
.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 | 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
- Eliassen.Apache.Tika (>= 0.1.85)
- Eliassen.Azure.StorageAccount (>= 0.1.85)
- Eliassen.GroqCloud (>= 0.1.85)
- Eliassen.Handlebars (>= 0.1.85)
- Eliassen.HtmlToOpenXml (>= 0.1.85)
- Eliassen.Keycloak (>= 0.1.85)
- Eliassen.MailKit (>= 0.1.85)
- Eliassen.Markdig (>= 0.1.85)
- Eliassen.Microsoft.ApplicationInsights (>= 0.1.85)
- Eliassen.Microsoft.B2C (>= 0.1.85)
- Eliassen.MongoDB (>= 0.1.85)
- Eliassen.MysticMind (>= 0.1.85)
- Eliassen.Ollama (>= 0.1.85)
- Eliassen.OpenSearch (>= 0.1.85)
- Eliassen.Qdrant (>= 0.1.85)
- Eliassen.RabbitMQ (>= 0.1.85)
- Eliassen.SBert (>= 0.1.85)
- Eliassen.WkHtmlToPdf (>= 0.1.85)
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.