示例#1
0
        async static void GetSongInfo(ISong song, ManualResetEvent resetEvent)
        {
            ServiceProvider serviceProvider = ApplicationContent.Instance.Injector.Resolve <ServiceProvider>();

            if (serviceProvider != null)
            {
                ISongService    songService = serviceProvider.GetService <ISongService>();
                SongInfoContent content     = await songService.GetInfoAsync(song.SongId);

                song.CopyFrom(content.Item);
            }

            resetEvent.Set();
        }