public override void InstallBindings()
        {
            EntityInstaller.Install(Container);
            TranslatorInstaller.Install(Container);

            // Structures
            Container.Bind <StoredTextureEvents>().AsCached();

            // UseCases
            Container
            .BindInterfacesAndSelfTo <CapturedTextureUseCase>()
            .AsCached()
            .WithArguments(new CapturedTextureUseCase.InitializeArguments("CapturedTexture"));

            // Repositories
            Container.BindInterfacesAndSelfTo <ImageRepository>().AsSingle();

            // DataStores
            Container.BindInterfacesAndSelfTo <ObservableLocalStorageDataStore>().AsSingle();

            // Presenters
            Container.BindInterfacesAndSelfTo <StoredTexturePresenter>().AsCached();
        }
Beispiel #2
0
        public override void InstallBindings()
        {
            EntityInstaller.Install(Container);
            TranslatorInstaller.Install(Container);

            // Structures
            Container.Bind <WebCamEvents>().AsCached();

            // UseCases
            Container
            .BindInterfacesAndSelfTo <WebCamUseCase>()
            .AsCached()
            .WithArguments(
                new WebCamUseCase.InitializeArguments(
                    640,
                    480,
                    "",
                    true
                    )
                );

            // Presenters
            Container.BindInterfacesAndSelfTo <WebCamPresenter>().AsCached();
        }