1
私は私のコアプロジェクトでIDispatcherインタフェースを抱えている:Autofac IComponentContext.Registrationsは空です
public interface IDispatcher
{
...
}
、インフラプロジェクトに私が実装抱えている:私は呼んでいるとき、今
public class AutofacDispatcher : IDispatcher
{
private readonly IComponentContext container;
public AutofacDispatcher(IComponentContext container)
{
this.container = container;
}
...
}
:
var dispatcher = container.Resolve<IDispatcher>();
Dispatcher内のプライベートIComponentContextは空であり、登録はありません。
どうして私はそれを動作させることができますか?