Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Composite pattern #297

Closed
alexmg opened this issue Jan 22, 2014 · 2 comments
Closed

Composite pattern #297

alexmg opened this issue Jan 22, 2014 · 2 comments

Comments

@alexmg
Copy link
Member

alexmg commented Jan 22, 2014

From Konst...@gmail.com on February 22, 2011 15:16:54

Hi,

I noticed I quite often need to implement composite pattern. For example:

interface IService { ... }
class Service1 : IService { ... }
class Service2 : IService { ... }
class CompositeService : IService
{
public CompositeService(IEnumerable services) { ... }
...
}

I want to register CompositeService as IService in container and have dependencies injected.

(looks somewhat similar to Decorator but decorating set of services instead of only one)

What's the best way to do it in autofac?

Original issue: http://code.google.com/p/autofac/issues/detail?id=297

@alexmg
Copy link
Member Author

alexmg commented Jan 22, 2014

From nicholas...@gmail.com on February 23, 2011 02:02:05

Thanks for getting in touch. This issue tracker is for bug reports and enhancement requests only - please post your question to Stack Overflow with the 'autofac' tag, we will make every effort to get you on the right track. Cheers!

Status: Invalid

@alexmg
Copy link
Member Author

alexmg commented Jan 22, 2014

From Konst...@gmail.com on February 23, 2011 07:03:23

Thanks!
I've posted question http://stackoverflow.com/questions/5092602/autofac-composite-pattern

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant