Ejemplo n.º 1
0
    protected override void mapBindings()
    {
        base.mapBindings();
        //View 绑定到 Mediator
        UIView.MediationMapbinding(mediationBinder);

        GlobalSignalManager.GlobalSignalBinder(injectionBinder, commandBinder);


        //signal 绑定到 Command
        commandBinder.Bind <StartSignal>().To <StartCommand>().Once();


        //在injectionBinder上绑定服务或model (一般绑定的都是接口)
    }
Ejemplo n.º 2
0
 protected override void RegisterSingleton()
 {
     Inst = this;
 }