TransientServiceProvider Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |