Skip to content

Commit

Permalink
Update to 1.1.0
Browse files Browse the repository at this point in the history
 - Added GitHub decoration.
 - Expanded README files.
 - Updated `Microsoft.SourceLink.GitHub` to v1.1.1..
 - Updated `ApacheTech.Common.Extensions` to v1.1.1.
 - Simplified future versioning with a single point csproj property.
 - Minor XML Documentation changes.
  • Loading branch information
ApacheTech committed Dec 17, 2021
1 parent 4f8f30d commit 8547005
Show file tree
Hide file tree
Showing 7 changed files with 92 additions and 7 deletions.
12 changes: 12 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# These are supported funding model platforms

github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: ApacheGamingUK # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
custom: [ 'http://amzn.eu/7qvKTFu', 'bit.ly/APGDonate', 'https://www.buymeacoffee.com/Apache' ] # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
21 changes: 21 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
name: Bug Report
about: Found a bug? Report it here.
title: "[BUG]"
labels: bug
assignees: ''

---

**Describe the Bug:**
A clear description of what the bug is. Please give as much detail as possible.
Vague, or nondescript bug reports cannot be processed, and you will be asked to submit a new bug report, giving the details needed.

**To Reproduce:**
Steps to reproduce the behaviour:

**Expected Behaviour:**
A clear description of what you expected to happen.

**Additional Context**
Add any other context about the problem here.
26 changes: 26 additions & 0 deletions .github/ISSUE_TEMPLATE/feature-request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: Feature Request
about: Suggest an idea for this project.
title: "[FEATURE]"
labels: enhancement
assignees: ''

---

***Summary:** A user story is an informal, general explanation of a software feature written from the perspective of the end user. Its purpose is to articulate how a software feature will provide value to the customer.*

**Is your feature request related to a problem? If not, why is your feature needed?**

A clear description of what the problem is. Ex. As a Mod Developer, I sometimes find that [...]

**Describe the solution you'd like**

Please take your time, and give as much detail as possible.

**Describe alternatives you've considered**

A clear description of any alternative solutions or features you've considered.

**Additional context**

Add any other context or screenshots about the feature request here.
7 changes: 6 additions & 1 deletion ApacheTech.Common.DependencyInjection.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.31911.196
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ApacheTech.Common.DependencyInjection", "ApacheTech.Common.DependencyInjection\ApacheTech.Common.DependencyInjection.csproj", "{545558F3-2E21-42BA-8BD8-DCB850F29D88}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ApacheTech.Common.DependencyInjection", "ApacheTech.Common.DependencyInjection\ApacheTech.Common.DependencyInjection.csproj", "{545558F3-2E21-42BA-8BD8-DCB850F29D88}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{48CF9495-A37B-4AEC-8DF1-2573FC848027}"
ProjectSection(SolutionItems) = preProject
README.md = README.md
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<PropertyGroup>
<ApplicationIcon>__Icon.ico</ApplicationIcon>
<AssemblyName>ApacheTech.Common.DependencyInjection</AssemblyName>
<AssemblyVersion>1.0.1.0</AssemblyVersion>
<AssemblyFileVersion>1.0.1.0</AssemblyFileVersion>
<AssemblyVersion>$(Version)</AssemblyVersion>
<AssemblyFileVersion>$(Version)</AssemblyFileVersion>
<Authors>ApacheTech Solutions</Authors>

<Company>ApacheTech Solutions</Company>
Expand Down Expand Up @@ -38,7 +38,7 @@
<TargetFramework>netstandard2.0</TargetFramework>
<Title>Minimal Dependency Injection Engine</Title>

<Version>1.0.1.0</Version>
<Version>1.1.0.0</Version>
</PropertyGroup>

<ItemGroup>
Expand All @@ -57,14 +57,14 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0">
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<PackageReference Include="ApacheTech.Common.Extensions" Version="1.0.0" />
<PackageReference Include="ApacheTech.Common.Extensions" Version="1.1.1" />
</ItemGroup>

</Project>
10 changes: 9 additions & 1 deletion ApacheTech.Common.DependencyInjection/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,12 @@

This is a minimal implmentation of the `Microsoft.Extensions.DependencyInjection` package, including the `ActivatorUtilities` class.

Allows for Singleton and Transient services to be registered with an IOC container. Scoped services have not been implmented.
Allows for Singleton and Transient services to be registered with an IOC container. Scoped services have not been implemented.

This is designed as a very lightweight, and minimalistic, but this may come at a cost. This package doesn't come with a lot of the safety measures, and fallbacks that the full package contains. It was written from the ground up, other than the `ActivatorUtilities` class. Therefore, it might not play well with thrid-party ICO wrappers like AutoFac, or CastleWindsor. It should not be seen as a replacement for Microsoft.Extensions.DependencyInjection.

The original purpose of this package was to act as an IOC container for game mods, where a full Enterprise level package simply comes with too much bloat. This is ideal for those kinds of scenarios, when you just need a quick and simple IOC container, without all the bloat.

## Acknowledgement:

Inspired by Nick Chapsas' video tutorial on bespoke dependency injection solutions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Minimal Dependency Injection

This is a minimal implmentation of the `Microsoft.Extensions.DependencyInjection` package, including the `ActivatorUtilities` class.

Allows for Singleton and Transient services to be registered with an IOC container. Scoped services have not been implemented.

This is designed as a very lightweight, and minimalistic, but this may come at a cost. This package doesn't come with a lot of the safety measures, and fallbacks that the full package contains. It was written from the ground up, other than the `ActivatorUtilities` class. Therefore, it might not play well with thrid-party ICO wrappers like AutoFac, or CastleWindsor. It should not be seen as a replacement for Microsoft.Extensions.DependencyInjection.

The original purpose of this package was to act as an IOC container for game mods, where a full Enterprise level package simply comes with too much bloat. This is ideal for those kinds of scenarios, when you just need a quick and simple IOC container, without all the bloat.

## Acknowledgement:

Inspired by Nick Chapsas' video tutorial on bespoke dependency injection solutions.

0 comments on commit 8547005

Please sign in to comment.