OSK.Petra.DependencyInjection
0.1.0
dotnet add package OSK.Petra.DependencyInjection --version 0.1.0
NuGet\Install-Package OSK.Petra.DependencyInjection -Version 0.1.0
<PackageReference Include="OSK.Petra.DependencyInjection" Version="0.1.0" />
<PackageVersion Include="OSK.Petra.DependencyInjection" Version="0.1.0" />
<PackageReference Include="OSK.Petra.DependencyInjection" />
paket add OSK.Petra.DependencyInjection --version 0.1.0
#r "nuget: OSK.Petra.DependencyInjection, 0.1.0"
#:package OSK.Petra.DependencyInjection@0.1.0
#addin nuget:?package=OSK.Petra.DependencyInjection&version=0.1.0
#tool nuget:?package=OSK.Petra.DependencyInjection&version=0.1.0
OSK.Petra.DependencyInjection
The core responsibility of this project is to provide the Petra ecosystem the ability to inject required parameters and variables into any object service type. This is done using the OSK invoker library to perform quick and efficient injection.
Usage
You can access the main injector factory using DependencyInjector. This factor is capable of injecting any required properties given a valid IServiceProvider and a related target object to inject into. The properties to be injected must utilize the InjectAttribute for the library to attempt injection.
For service collection related purposes, callers should add the primary dependency injection services to their DI containers, if utilizing the IGameServiceProvider. This can be done by calling AddGameServiceProvider on the DI container.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.1 is compatible. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- Microsoft.Extensions.DependencyInjection (>= 10.0.9)
- OSK.Expressions.Invoker (>= 1.2.2)
- OSK.Hexagonal.MetaData (>= 1.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on OSK.Petra.DependencyInjection:
| Package | Downloads |
|---|---|
|
OSK.Petra.Modules.Services
A game module definition and services that utilizes .NET DI for the Petra game suite and framework, for use within any C# game engine. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0 | 219 | 6/18/2026 |