PostSharp.Samples
PostSharp.Samples copied to clipboard
Missing Advanced Code Samples For Dependency Injection
The code samples for explaining, "Consuming Dependencies from an Aspect", are all missing from the "PostSharp.Samples" solution. All of these are great examples to follow in real practical projects for something as simple as creating a detailed physical log file within PostSharp Aspects.
This section presents several ways to consume dependencies from an aspect:
- Using a Global Composition Container
- Using a Global Service Locator
- Using Dynamic Dependency Resolution
- Using Contextual Dependency Resolution
- Importing Dependencies from the Target Object