public SpotifySessionFactory(IBus bus, ISoundOutput soundOutput, ISpotifyLogProcessor spotifyLogProcessor)
        {
            if (bus == null) throw new ArgumentNullException("bus");
            if (soundOutput == null) throw new ArgumentNullException("soundOutput");
            if (spotifyLogProcessor == null) throw new ArgumentNullException("spotifyLogProcessor");

            _bus = bus;
            _soundOutput = soundOutput;
            _spotifyLogProcessor = spotifyLogProcessor;
        }
Ejemplo n.º 2
0
        public SpotifySessionFactory(IBus bus, ISoundOutput soundOutput, ISpotifyLogProcessor spotifyLogProcessor)
        {
            if (bus == null)
            {
                throw new ArgumentNullException("bus");
            }
            if (soundOutput == null)
            {
                throw new ArgumentNullException("soundOutput");
            }
            if (spotifyLogProcessor == null)
            {
                throw new ArgumentNullException("spotifyLogProcessor");
            }

            _bus                 = bus;
            _soundOutput         = soundOutput;
            _spotifyLogProcessor = spotifyLogProcessor;
        }