Azure / Azure/DotNetty

How to use autofac in DotNetty

Open
#533 2 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.