Share via


TransientServiceProvider Class

Definition

A service provider that contains transient values and passes other types to another service provider.

public class TransientServiceProvider : IServiceProvider
type TransientServiceProvider = class
    interface IServiceProvider
Public Class TransientServiceProvider
Implements IServiceProvider
Inheritance
TransientServiceProvider
Implements

Constructors

TransientServiceProvider(IEnumerable<IServiceProvider>)

Initializes a new instance of the TransientServiceProvider class.

TransientServiceProvider(IServiceProvider)

Initializes a new instance of the TransientServiceProvider class.

Methods

AddSingleton(Type, Object)

Adds a singleton value to the service provider.

AddSingleton<T>(T)

Adds a singleton value to the service provider.

GetService(Type)

Gets the service object of the specified type.

Applies to