|
|
|
@ -83,21 +83,21 @@ namespace HybirdFrameworkCore.Autofac
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
Type? iInterface = type.GetInterface("HybirdFrameworkDriver.ChargerServer.IMsgHandler");
|
|
|
|
|
Type? iInterface = type.GetInterface("HybirdFrameworkDriver.TcpServer.IMsgHandler");
|
|
|
|
|
if (iInterface != null)
|
|
|
|
|
{
|
|
|
|
|
builder.RegisterType(type).As(iInterface).InstancePerDependency()
|
|
|
|
|
.PropertiesAutowired(PropertyWiringOptions.AllowCircularDependencies);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
iInterface = type.GetInterface("HybirdFrameworkDriver.ChargerServer.IDecoder");
|
|
|
|
|
iInterface = type.GetInterface("HybirdFrameworkDriver.TcpServer.IDecoder");
|
|
|
|
|
if (iInterface != null)
|
|
|
|
|
{
|
|
|
|
|
builder.RegisterType(type).As(iInterface).InstancePerDependency()
|
|
|
|
|
.PropertiesAutowired(PropertyWiringOptions.AllowCircularDependencies);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
iInterface = type.GetInterface("HybirdFrameworkDriver.ChargerServer.IEncoder");
|
|
|
|
|
iInterface = type.GetInterface("HybirdFrameworkDriver.TcpServer.IEncoder");
|
|
|
|
|
if (iInterface != null)
|
|
|
|
|
{
|
|
|
|
|
builder.RegisterType(type).As(iInterface).InstancePerDependency()
|
|
|
|
|