Interface IAppInstance
Represents an application instance that provides access to dependency resolution services.
public interface IAppInstance
- Extension Methods
Remarks
Use this interface to access both immutable and mutable service resolvers within the application. The Current property exposes the current read-only dependency resolver, while CurrentMutable provides access to a mutable service registrar for registering or modifying services at runtime.
Properties
Current
Gets the current dependency resolver in use by the application.
IReadonlyDependencyResolver? Current { get; }
Property Value
Remarks
The returned resolver provides access to registered services and dependencies. If no resolver is set, this property may return null. Thread safety and resolver lifetime depend on the implementation of the dependency resolver.
CurrentMutable
Gets the current mutable dependency resolver used for registering and resolving dependencies at runtime.
IMutableDependencyResolver CurrentMutable { get; }
Property Value
Remarks
The mutable dependency resolver allows for dynamic registration and replacement of services during application execution. Use this property to add or override service registrations as needed. Thread safety depends on the implementation of the underlying resolver.