All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog; this project adheres to Semantic Versioning.
- Added scopes support (
IServiceScope
,IServiceScopeFactory
). - Added
CreateInstance()
extensions toIServiceProvider
. - Added
GetRequiredService()
extensions toIServiceProvider
. - Added
Contains()
andRemove()
overloads toIServiceContainer
.
- Changed namespace to
UnityFx.DependencyInjection
. - Changed
IServiceProvider.GetService()
implementation to returnnull
on resolve errors (instead of throwing an exception). - Changed
ServiceProvider
to have internal constructor.ServiceProvider
instanced should be created withBuildServiceProvider
extension ofIServiceCollection
. - Changed resolve validation to run on
ServiceProvider
construction (not on resolve).
- Removed all assembly-specific exceptions.
InvalidOperationException
is thrown on resolve errors instead.
- Initial release.