在应用程序配置文件中,我有一个信号/命令映射
signalCommandMap.map(DisconnectUserSignal).toCommand(DisconnectUserCommand);
然后,我有两个连接类:
public class BaseConnection implements IBaseConnection
{
// When I am trying to inject the signal here:
[Inject] public var disconnectUserSignal:DisconnectUserSignal; // it is always null
_netConnection = new NetConnection();
...
}
和
public class BBConnection extends DefaultConnectionCallback implements IBBConnection
{
// When I am trying to inject the signal here:
[Inject] public var disconnectUserSignal:DisconnectUserSignal; // it works perfectly fine
_baseConnection = new BaseConnection(this);
}
有什么建议可能是什么原因?谢谢