SplatContainerExtension class¶
Defined in
Namespace: Splat.Prism
Assembly: Splat.Prism.dll
Full name: Splat.Prism.SplatContainerExtension
Modifiers: public
Summary¶
Provides an implementation of the Prism container extension using the Splat dependency resolver. Enables
registration and resolution of services and types for dependency injection within Prism applications.
Applies to
net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net462, net481, net471
Class hierarchy
classDiagram
class SplatContainerExtension
class IContainerExtension~IDependencyResolver~ {
<>
}
IContainerExtension~IDependencyResolver~ <|.. SplatContainerExtension
class IContainerExtension {
<>
}
IContainerExtension <|.. SplatContainerExtension
class IContainerProvider {
<>
}
IContainerProvider <|.. SplatContainerExtension
class IContainerRegistry {
<>
}
IContainerRegistry <|.. SplatContainerExtension
class IDisposable {
<>
}
IDisposable <|.. SplatContainerExtension
Implements: IContainerExtension<IDependencyResolver>, IContainerExtension, IContainerProvider, IContainerRegistry, IDisposable
Remarks¶
This extension integrates the Splat dependency resolver with the Prism container abstraction, allowing Prism-based applications to use Splat for service registration and resolution. Most scoped and advanced registration features are not supported and will throw exceptions if used. The container is primarily intended for simple singleton and transient registrations. Thread safety is provided for registration mappings. Disposing the extension resets the global Splat locator to its default state.
Constructors¶
| Name | Summary |
|---|---|
| .ctor | Initializes a new instance of the [SplatContainerExtension](# class. |
Properties¶
| Name | Summary |
|---|---|
| Instance | Gets the dependency resolver. |
| CurrentScope |
Methods¶
| Name | Summary |
|---|---|
| CreateScope | |
| Dispose | |
| RegisterScoped | |
| IsRegistered | |
| RegisterManySingleton | |
| Register | |
| RegisterMany | |
| RegisterInstance | |
| RegisterSingleton | |
| Resolve |