static void Main(string[] args) { var xml = File.ReadAllText(radioheadFileName); using (var ctx = new MediaContext(root)) { var folder = ctx.FindAllSubFoldersAsync().Result; } }
private async Task SearchForFolders() { var token = this.cancellationTokenSource.Token; using (var ctx = new MediaContext(this.Root)) { var folder = await ctx.FindAllSubFoldersAsync(); folder.Items.CollectionChanged += ArtistCollectionChanged; } }