Skip to content

Commit fe4ab7e

Browse files
committed
Code style fixes
1 parent d097836 commit fe4ab7e

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

README.md

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ Provides Dependency Injection (DI) for Inversion of Control (IoC) between classe
2424

2525
A Dependency Injection (DI) Container provides functionality and automates many of the tasks involved in Object Composition, Interception, and Lifetime Management. It's an engine that resolves and manages object graphs. These DI Containers depend on the static information compiled into all classes. Then using reflection they can analyze the requested class and figure out which Dependencies are required.
2626

27-
This API mirrors as close as possible the official .NET
28-
[DependencyInjection](https://docs.microsoft.com/en-us/dotnet/core/extensions/dependency-injection). Exceptions are mainly derived from the lack of generics support in .NET nanoFramework.
27+
This API mirrors as close as possible the official .NET [DependencyInjection](https://docs.microsoft.com/en-us/dotnet/core/extensions/dependency-injection). Exceptions are mainly derived from the lack of generics support in .NET nanoFramework.
2928

3029
The .NET nanoFramework [Generic Host](https://github.com/nanoframework/nanoFramework.Hosting) provides convenience methods for creating dependency injection (DI) application containers with preconfigured defaults.
3130

@@ -35,9 +34,9 @@ The .NET nanoFramework [Generic Host](https://github.com/nanoframework/nanoFrame
3534

3635
Creating a dependency injection container required three basic components.
3736

38-
* Object Composition - A object composition defining a set of objects to create and couple.
39-
* Registering Services - Define an instance of the ServiceCollection and register the object composition with a specific service lifetime.
40-
* Service Provider - Creating a service provider to retrieve the object.
37+
- Object Composition - A object composition defining a set of objects to create and couple.
38+
- Registering Services - Define an instance of the ServiceCollection and register the object composition with a specific service lifetime.
39+
- Service Provider - Creating a service provider to retrieve the object.
4140

4241
### Object Composition
4342

@@ -122,7 +121,7 @@ Debug.WriteLine($"Three: {instance.ServiceObject.Three}");
122121
Debug.WriteLine($"Name: {instance.ServiceObject.GetType().Name}");
123122
```
124123

125-
### Validate On Build
124+
### Validate On Build
126125

127126
A check is performed to ensure that all services registered with the container can actually be created. This can be particularly useful during development to fail fast and allow developers to fix the issue. Validate on build is configured false by default.
128127

@@ -132,8 +131,7 @@ var serviceProvider = new ServiceCollection()
132131
.BuildServiceProvider(new ServiceProviderOptions() { ValidateOnBuild = true });
133132
```
134133

135-
136-
### Validate Scopes
134+
### Validate Scopes
137135

138136
A check verifying that scoped services never gets resolved from root provider. Validate on build is configured false by default.
139137

@@ -143,7 +141,6 @@ var serviceProvider = new ServiceCollection()
143141
.BuildServiceProvider(new ServiceProviderOptions() { ValidateScopes = true });
144142
```
145143

146-
147144
## Example Application Container
148145

149146
```csharp
@@ -281,6 +278,6 @@ The **nanoFramework** Class Libraries are licensed under the [MIT license](LICEN
281278
This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behaviour in our community.
282279
For more information see the [.NET Foundation Code of Conduct](https://dotnetfoundation.org/code-of-conduct).
283280
284-
### .NET Foundation
281+
## .NET Foundation
285282

286-
This project is supported by the [.NET Foundation](https://dotnetfoundation.org).
283+
This project is supported by the [.NET Foundation](https://dotnetfoundation.org).

0 commit comments

Comments
 (0)