Piri.Extensions.DependencyInjection
1.0.7
Prefix Reserved
dotnet add package Piri.Extensions.DependencyInjection --version 1.0.7
NuGet\Install-Package Piri.Extensions.DependencyInjection -Version 1.0.7
<PackageReference Include="Piri.Extensions.DependencyInjection" Version="1.0.7" />
<PackageVersion Include="Piri.Extensions.DependencyInjection" Version="1.0.7" />
<PackageReference Include="Piri.Extensions.DependencyInjection" />
paket add Piri.Extensions.DependencyInjection --version 1.0.7
#r "nuget: Piri.Extensions.DependencyInjection, 1.0.7"
#:package Piri.Extensions.DependencyInjection@1.0.7
#addin nuget:?package=Piri.Extensions.DependencyInjection&version=1.0.7
#tool nuget:?package=Piri.Extensions.DependencyInjection&version=1.0.7
Piri.Extensions.DependencyInjection
Overview
Piri.Extensions.DependencyInjection is a .NET library that provides extensions for integrating the Piri Object Mapper with the .NET Dependency Injection framework. This package simplifies the configuration and usage of the Piri Object Mapper in your .NET applications.
Features
- Seamless integration with .NET Dependency Injection
- Easy configuration of Piri Object Mapper
- Support for .NET 8
Installation
You can install the package via NuGet Package Manager or the .NET CLI.
NuGet Package Manager
Install-Package Piri.Extensions.DependencyInjection
.NET CLI
dotnet add package Piri.Extensions.DependencyInjection
Usage
To use the Piri Object Mapper with Dependency Injection, follow these steps:
- Configure Services:
In your
Program.cs
or wherever you configure your services, add the Piri Object Mapper services.using Microsoft.Extensions.DependencyInjection; using Piri.Extensions.DependencyInjection; var builder = WebApplication.CreateBuilder(args); builder.Services.AddPiriMapper(options => { options.EnableDefaultMapping(); }); // Other service configurations var app = builder.Build(); // Configure the HTTP request pipeline. await app.RunAsync();
- Inject and Use:
Inject the
IMapper
interface into your classes and use it as needed.using Piri.Core; public class MyService { private readonly IMapper _mapper; public MyService(IMapper mapper) { _mapper = mapper; } public void MyMethod() { // Use the mapper var destination = _mapper.Map<DestinationType>(source); } }
Contributing
Contributions are welcome! Please open an issue or submit a pull request on GitHub.
License
This project is licensed under the MIT License. See the LICENSE file for more details.
Contact
For any questions or feedback, please contact us at me@gturkmen.com.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. 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. |
-
net8.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.2)
- Piri (>= 1.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.