Beispiel #1
0
        public void Run(ISpotifySettings spotifySettings)
        {
            var iocBootstrap = new IocBootstrap();
            _lifetimeScope = iocBootstrap.Install(spotifySettings);

            var handlerResolver = _lifetimeScope.Resolve<IHandlerResolver>();
            handlerResolver.Resolve();

            var soundOutput = _lifetimeScope.Resolve<ISoundOutput>();
            soundOutput.Volume = 0.1f;
            soundOutput.Play();

            _backgroundThread = new Thread(BackgroundThreadEntryPoint);
            _backgroundThread.IsBackground = true;
            _backgroundThread.Start();
        }
Beispiel #2
0
        public void Run(ISpotifySettings spotifySettings)
        {
            var iocBootstrap = new IocBootstrap();

            _lifetimeScope = iocBootstrap.Install(spotifySettings);

            var handlerResolver = _lifetimeScope.Resolve <IHandlerResolver>();

            handlerResolver.Resolve();

            var soundOutput = _lifetimeScope.Resolve <ISoundOutput>();

            soundOutput.Volume = 0.1f;
            soundOutput.Play();

            _backgroundThread = new Thread(BackgroundThreadEntryPoint);
            _backgroundThread.IsBackground = true;
            _backgroundThread.Start();
        }