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
builderIHostApplicationBuilderThe IHostApplicationBuilder to add to.
filePathstringPath 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
builderIHostApplicationBuilderThe IHostApplicationBuilder to add to.
filePathstringPath to the SOPS-encrypted file.
configureOptionsAction<SopsConfigurationOptions>Callback to configure SopsConfigurationOptions.
Returns
- IHostApplicationBuilder
The same builder, for chaining.