How to use autofac in DotNetty
Open
- Dominant language
- C#
- Stars
- 4.3k
- Forks
- 1k
- PR merge metrics
- No merged PRs in 30d
Description
I want to use autofac,how to contoller MyHandler life time.
```
bootstrap.ChildHandler(new ActionChannelInitializer(channel =>
{
IChannelPipeline pipeline = channel.Pipeline;
pipeline.AddLast(new MyHandler(configuration));//i want to autofac contoller MyHandler life time
}));
```
```
public class MyHandler:ChannelHandlerAdapter
{
public MyHandler(
Ilogger logger,
IMyService myService//i want to injection some of service object
)
}
```
Contributor guide
Assessment
This issue has not been assessed yet.