https://github.com/ipjohnson/Grace
Grace is a feature rich dependency injection container library
https://github.com/ipjohnson/Grace
c-sharp dependency-injection ioc-container
Last synced: 4 months ago
JSON representation
Grace is a feature rich dependency injection container library
- Host: GitHub
- URL: https://github.com/ipjohnson/Grace
- Owner: ipjohnson
- License: mit
- Created: 2014-01-06T02:26:15.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2024-03-10T20:10:59.000Z (over 1 year ago)
- Last Synced: 2024-05-29T20:58:13.983Z (about 1 year ago)
- Topics: c-sharp, dependency-injection, ioc-container
- Language: C#
- Homepage:
- Size: 29.4 MB
- Stars: 335
- Watchers: 22
- Forks: 33
- Open Issues: 36
-
Metadata Files:
- Readme: README.md
- License: License.md
Awesome Lists containing this project
- awesome-dotnet-core - Grace - Grace is a feature rich Dependency Injection Container designed with ease of use and performance in mind. (Frameworks, Libraries and Tools / IOC)
- awesome-dotnet-core - Grace - Grace是一款功能丰富的依赖注入容器,其设计考虑了易用性和性能。 (框架, 库和工具 / 控制反转IOC)
- fucking-awesome-dotnet-core - Grace - Grace is a feature rich Dependency Injection Container designed with ease of use and performance in mind. (Frameworks, Libraries and Tools / IOC)
- awesome-dotnet-core - Grace - Grace is a feature rich Dependency Injection Container designed with ease of use and performance in mind. (Frameworks, Libraries and Tools / IOC)
README
# Notice:
After many years of development I am making the decision to sunset Grace. While it's still possible to use Grace, the evolution of the built in dependency injection container has made Grace less relavent. I say thank you to the people that have supported the project over the past decade and look forward to the future of C# and specifically source code generators.# Grace
[](https://ci.appveyor.com/project/ipjohnson/grace) [](https://coveralls.io/github/ipjohnson/Grace) [](http://stackoverflow.com/questions/tagged/grace-ioc)
Grace is a feature-rich dependency injection container designed with ease of use and performance in mind.
```csharp
using Grace.DependencyInjection;var container = new DependencyInjectionContainer();
container.Configure(c => c.Export().As());
var basicService = container.Locate();
```It's as easy as create, configure, and locate.
Getting Grace
=====[NuGet](http://www.nuget.org/packages/Grace/) package supports .Net 4.5 and .Net Standard 1.0.
[Getting Started](https://github.com/ipjohnson/Grace/wiki/Getting-Started) - A getting started guide for Grace as well as documentation for more complex topics
Features in Grace
=====* Fluent interface or Attributes for configuration allowing for maximum flexibility
* Supports child containers and light weight lifetime scopes
* Contextual binding support (similar to NInject)
* IDisposable objects created by the container will be tracked and disposed by the container unless configured otherwise.
* Performance characteristics that make it one of the fastest containers available. ([Benchmarks](http://www.palmmedia.de/blog/2011/8/30/ioc-container-benchmark-performance-comparison))
* Supports special types
* IEnumerable<T> - supports resolving collections as IEnumerable<T> as well as most other types of collections List<T>, ReadOnlyCollection<T>, T[] and any collection that implements ICollection<T>
* Func<T> - supports resolving Func