Zero Install .NET API 2.20.0
ZeroInstall.Services.ServiceCollectionExtensions Class Reference

Provides extension methods for IServiceCollection. More...

Static Public Member Functions

static IServiceCollection AddZeroInstall< TTaskHandler > (this IServiceCollection services, IConfiguration? configuration=null)
 Registers a set of scoped services for using Zero Install functionality. More...
 
static IServiceCollection AddZeroInstall (this IServiceCollection services, IConfiguration? configuration=null)
 Registers a set of scoped services for using Zero Install functionality. Automatically uses ILogger<TCategoryName> and ICredentialProvider if registered in services . More...
 

Detailed Description

Provides extension methods for IServiceCollection.

Member Function Documentation

◆ AddZeroInstall()

static IServiceCollection ZeroInstall.Services.ServiceCollectionExtensions.AddZeroInstall ( this IServiceCollection  services,
IConfiguration?  configuration = null 
)
static

Registers a set of scoped services for using Zero Install functionality. Automatically uses ILogger<TCategoryName> and ICredentialProvider if registered in services .

Parameters
servicesThe service collection to add the services to.
configurationAn optional configuration source for building Config instead of the default config files.
See also
ConfigurationCredentialProviderRegistration.ConfigureCredentials

◆ AddZeroInstall< TTaskHandler >()

static IServiceCollection ZeroInstall.Services.ServiceCollectionExtensions.AddZeroInstall< TTaskHandler > ( this IServiceCollection  services,
IConfiguration?  configuration = null 
)
static

Registers a set of scoped services for using Zero Install functionality.

Template Parameters
TTaskHandlerA callback object used when the the user needs to be asked questions or informed about download and IO tasks.
Parameters
servicesThe service collection to add the services to.
configurationAn optional configuration source for building Config instead of the default config files.
Type Constraints
TTaskHandler :class 
TTaskHandler :ITaskHandler 
TTaskHandler :services.AddScoped 
TTaskHandler :ITaskHandler 
TTaskHandler :TTaskHandler 
TTaskHandler :AddScoped 
TTaskHandler :_ 
TTaskHandler :configuration 
TTaskHandler :null 
TTaskHandler :Config.Load() 
TTaskHandler :Config.From 
TTaskHandler :configuration 
TTaskHandler :AddScoped 
TTaskHandler :_ 
TTaskHandler :ImplementationStores.Default() 
TTaskHandler :AddScoped 
TTaskHandler :_ 
TTaskHandler :OpenPgp.Verifying() 
TTaskHandler :AddScoped 
TTaskHandler :provider 
TTaskHandler :FeedCaches.Default 
TTaskHandler :provider.GetRequiredService<IOpenPgp>() 
TTaskHandler :AddScoped 
TTaskHandler :_ 
TTaskHandler :TrustDB.LoadSafe() 
TTaskHandler :AddScoped 
TTaskHandler :ITrustManager 
TTaskHandler :TrustManager 
TTaskHandler :AddScoped 
TTaskHandler :IFeedManager 
TTaskHandler :FeedManager 
TTaskHandler :AddScoped 
TTaskHandler :ICatalogManager 
TTaskHandler :CatalogManager 
TTaskHandler :AddScoped 
TTaskHandler :_ 
TTaskHandler :PackageManagers.Default() 
TTaskHandler :AddScoped 
TTaskHandler :ISelectionsManager 
TTaskHandler :SelectionsManager 
TTaskHandler :AddScoped 
TTaskHandler :ISolver 
TTaskHandler :BacktrackingSolver 
TTaskHandler :AddScoped 
TTaskHandler :IFetcher 
TTaskHandler :Fetcher 
TTaskHandler :AddScoped 
TTaskHandler :IExecutor 
TTaskHandler :Executor 
TTaskHandler :AddScoped 
TTaskHandler :ISelectionCandidateProvider 
TTaskHandler :SelectionCandidateProvider 

The documentation for this class was generated from the following file: