Skip to content

Commit 827e69c

Browse files
committed
Adding .Net Foundation links
1 parent 3075dbd commit 827e69c

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,19 @@
44
[![NuGet](https://img.shields.io/nuget/v/Unity.Microsoft.DependencyInjection.svg)](https://www.nuget.org/packages/Unity.Microsoft.DependencyInjection)
55

66
# Unity.Microsoft.DependencyInjection
7+
78
Unity extension to integrate with [Microsoft.Extensions.DependencyInjection](https://github.com/aspnet/DependencyInjection) compliant systems
89

910
## Getting Started
11+
1012
- Reference the `Unity.Microsoft.DependencyInjection` package from NuGet.
11-
```
13+
14+
```shell
1215
Install-Package Unity.Microsoft.DependencyInjection
1316
```
1417

1518
## Registration:
19+
1620
- In the `WebHostBuilder` add `UseUnityServiceProvider(...)` method
1721

1822
```C#
@@ -38,6 +42,7 @@ public static IHostBuilder CreateHostBuilder(string[] args) =>
3842
```
3943

4044
- Add optional method to your `Startup` class
45+
4146
```C#
4247
public void ConfigureContainer(IUnityContainer container)
4348
{
@@ -49,6 +54,7 @@ public void ConfigureContainer(IUnityContainer container)
4954
### Resolving Controllers from Unity
5055

5156
By default ASP resolves controllers using built in activator. To enable resolution of controllers from Unity you need to add following line to MVC configuration:
57+
5258
```C#
5359
public void ConfigureServices(IServiceCollection services)
5460
{
@@ -62,3 +68,14 @@ public void ConfigureServices(IServiceCollection services)
6268

6369
For example of using Unity with Core 3.1 Web application follow [this link](https://github.com/unitycontainer/examples/tree/master/src/web/ASP.Net.Unity.Example)
6470

71+
## Code of Conduct
72+
73+
This project has adopted the code of conduct defined by the [Contributor Covenant](https://www.contributor-covenant.org/) to clarify expected behavior in our community. For more information, see the [.NET Foundation Code of Conduct](https://www.dotnetfoundation.org/code-of-conduct)
74+
75+
## Contributing
76+
77+
See the [Contributing guide](https://github.com/unitycontainer/unity/blob/master/CONTRIBUTING.md) for more information.
78+
79+
## .NET Foundation
80+
81+
Unity Container is a [.NET Foundation](https://dotnetfoundation.org/projects/unitycontainer) project

0 commit comments

Comments
 (0)