Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vladhrapov/injectify
Dependency injection packages for UWP projects.
https://github.com/vladhrapov/injectify
autofac dependency-injection di-framework dotnet injectify microsoft-dependency-injection net-standard uwp winui2
Last synced: about 1 month ago
JSON representation
Dependency injection packages for UWP projects.
- Host: GitHub
- URL: https://github.com/vladhrapov/injectify
- Owner: vladhrapov
- License: mit
- Created: 2020-08-22T14:46:42.000Z (about 4 years ago)
- Default Branch: develop
- Last Pushed: 2022-12-28T22:54:20.000Z (almost 2 years ago)
- Last Synced: 2024-09-30T05:41:28.438Z (about 2 months ago)
- Topics: autofac, dependency-injection, di-framework, dotnet, injectify, microsoft-dependency-injection, net-standard, uwp, winui2
- Language: C#
- Homepage:
- Size: 2.14 MB
- Stars: 41
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# UWP Dependency Injection
Dependency injection packages for the UWP projects.
# Contents
- [About](#about)
- [Quick Start](#quick-start)
- [Folder Structure](#folder-structure)
- [Code Samples](#code-samples)
- [Migration Guide](#migration-guide)
- [Release Versioning](#release-versioning)# About
Injectify is a useful tool for building robust, resilient bridge between a DI framework and a UWP app. It helps to define, register all dependencies in one place and later on inject them into components. Project was inspired by [ASP.NET Core](https://docs.microsoft.com/en-us/aspnet/core/?view=aspnetcore-3.1), [Nest.js](https://nestjs.com/), [UWP-IoC](https://github.com/MrCSharp22/UWP-IoC).
# Quick start
Install package with a DI dependent framework (other common packages like `Injectify.Abstractions` and `Injectify` will be installed as peer dependencies under the hood). For the versions lower than `0.4.0` please [reference](./docs/QUICK_START.md) the detailed guide.
## List of available packages
Microsoft.Extensions.DependencyInjection:
```
dotnet add package Injectify.Microsoft.DependencyInjection
```Autofac:
```
dotnet add package Injectify.Autofac
```# Folder Structure
Project is structured using a monorepo approach, contains a bunch of interlinked packages. Here is detailed folder structure:
Injectify consists of a 2 main packages with a common code:
- `Injectify` - DI framework agnostic common helpers and implementations.
- `Injectify.Abstractions` - abstractions for UWP application and internal interfaces.Additional packages dependent on a specific DI framework:
- `Injectify.Microsoft.DependencyInjection` (Microsoft.Extentions.DependencyInjection)
- `Injectify.Autofac` (Autofac)# Code Samples
Reference our [code samples](./docs/SAMPLES.md) of how to use DI using Injectify. Samples are split by a major version and include detailed explanation of breaking changes which were introduced from version to version.
# Migration Guide
Please follow up our migration guide [here](./docs/MIGRATION.md) if you stuck with any issue or need some guidance for migration to the higher versions.
# Release Versioning
Injectify follows synchronous updates strategy for all packages during the release. Always try to install the same versions of:
- `Injectify.Abstractions`,
- `Injectify`,
- `Injectify.`