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