Exemplo n.º 1
0
 static void Main(string[] args)
 {
     var xml = File.ReadAllText(radioheadFileName);
     using (var ctx = new MediaContext(root))
     {
         var folder = ctx.FindAllSubFoldersAsync().Result;
     }
 }
Exemplo n.º 2
0
 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;
     }
 }