Table of Contents

Class HostApplicationBuilderExtensions

Namespace
Nops.Configuration
Assembly
Nops.Configuration.dll

Extension methods for the generic host builder (Host.CreateApplicationBuilder, WebApplication.CreateBuilder).

public static class HostApplicationBuilderExtensions
Inheritance
HostApplicationBuilderExtensions
Inherited Members

Methods

AddSops(IHostApplicationBuilder, string)

Add a SOPS-encrypted file to the application's configuration.

public static IHostApplicationBuilder AddSops(this IHostApplicationBuilder builder, string filePath)

Parameters

builder IHostApplicationBuilder

The IHostApplicationBuilder to add to.

filePath string

Path to the SOPS-encrypted file.

Returns

IHostApplicationBuilder

The same builder, for chaining.

AddSops(IHostApplicationBuilder, string, Action<SopsConfigurationOptions>)

Add a SOPS-encrypted file to the application's configuration with options.

public static IHostApplicationBuilder AddSops(this IHostApplicationBuilder builder, string filePath, Action<SopsConfigurationOptions> configureOptions)

Parameters

builder IHostApplicationBuilder

The IHostApplicationBuilder to add to.

filePath string

Path to the SOPS-encrypted file.

configureOptions Action<SopsConfigurationOptions>

Callback to configure SopsConfigurationOptions.

Returns

IHostApplicationBuilder

The same builder, for chaining.