dtm-labs/client-csharp

[Dtmcli/Dtmgrpc] Split DtmClient/DtmgRPCClient and barrier relate dependency injection in ServiceCollectionExtensions

catcherwong opened this issue · 0 comments

Keep the principle of minimum injection. Not all scenarios will involve the server-side request and sub transaction barrier. Consider leaving these two parts during dependency injection and injecting them on demand.


保持最小化注入原则,并不是所有的场景都会涉及到服务端请求和子事务屏障,考虑将这两部分在依赖注入时分离开,按需注入。