Skip to content

Commit

Permalink
Merge pull request #11 from futurum-dev/feature/improve-README.md
Browse files Browse the repository at this point in the history
README.md improvements
  • Loading branch information
futurum-dev authored Apr 17, 2023
2 parents 7f29ee3 + 12256d2 commit 8d4070b
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,8 @@ A dotnet library that extends Microsoft.Extensions.DependencyInjection by adding
- [x] Autodiscovery of DependencyInjection registrations, based on [attributes](#attribute-based-registration) and Source Generators
- [x] Autodiscovery of DependencyInjection modules, based on [attributes](#attribute-based-module) and Source Generators
- [x] Autodiscovery of DependencyInjection startables, based on [attributes](#attribute-based-startable) and Source Generators
- [x] [Roslyn Analysers](#roslyn-analysers) to help build your WebApiEndpoint(s), using best practices
- [x] Integration with Futurum.Core]

## TryGetService
Try to get the service object of the specified type.

```csharp
var result = serviceProvider.TryGetService<ITestService>();
```
- [x] [Roslyn Analysers](#roslyn-analysers) to help build your modules, startables and registrations, using best practices
- [x] Integration with [Futurum.Core](https://github.com/futurum-dev/dotnet.futurum.core)

## Modules
A module allows you to break up registration into logical units.
Expand Down Expand Up @@ -215,6 +208,13 @@ public class Service : IService
}
```

## TryGetService
Try to get the service object of the specified type.

```csharp
var result = serviceProvider.TryGetService<ITestService>();
```

## Roslyn Analysers
- FMEDI0001 - Invalid Module Parameter
- FMEDI0002 - Missing Module Parameter
Expand Down

0 comments on commit 8d4070b

Please sign in to comment.