コード例 #1
0
 /// <summary>
 /// Creates the player module.
 /// </summary>
 /// <param name="repositoriesModule">The repositories module.</param>
 /// <param name="playlistModule">The playlist module.</param>
 /// <param name="musicControlModule">The music control module.</param>
 /// <returns>A <see cref="PlayerModule"/>.</returns>
 protected virtual PlayerModule CreatePlayerModule(IRepositoriesModule repositoriesModule, PlaylistModule playlistModule, MusicControlModule musicControlModule)
 {
     return(new PlayerModule(
                repositoriesModule.PlaylistRepository,
                playlistModule.LastPlaylistService,
                musicControlModule.MusicPlayer,
                new PlayerServiceLogger(this.logger)));
 }
コード例 #2
0
ファイル: TestBootstrapper.cs プロジェクト: hugener/Aupli
 protected override PlayerModule CreatePlayerModule(IRepositoriesModule repositoriesModule, PlaylistModule playlistModule, MusicControlModule musicControlModule)
 {
     return(new TestPlayerModule(repositoriesModule.PlaylistRepository, playlistModule.LastPlaylistService, musicControlModule.MusicPlayer, null));
 }