private static void RegisterScreens(IScreenContainer container) { container.Register <SimpleScreenView>(); container.Register <ScreenWithoutInterfaceView, ScreenWithoutInterfaceController>(); container.Register <IMyScreen, MyScreenView, MyScreenController>(); container.Register <IMyPopup, MyPopupView, MyPopupController>(); }
protected override void SetupScreens(IScreenContainer container) { container.Register <SimpleScreenView>(); container.Register <ScreenWithoutInterfaceView, ScreenWithoutInterfaceLogic>(); container.Register <IMyScreen, MyScreenView, MyScreenLogic>(); container.Register <IMyPopup, MyPopupView, MyPopupLogic>(); }
public static void Register <TView, TLogic>(this IScreenContainer container) where TLogic : IScreen { container.Register(typeof(TLogic), typeof(TView), typeof(TLogic)); }
public static void Register <TView>(this IScreenContainer container) where TView : IScreen { container.Register(typeof(TView), typeof(TView), typeof(TView)); }
public static void Register <TInterface, TView, TLogic>(this IScreenContainer container) where TInterface : IScreen where TLogic : TInterface { container.Register(typeof(TInterface), typeof(TView), typeof(TLogic)); }