title: How to call an anglesharp async method without AsyncEx library?
body: <p>With <a href="https://anglesharp.github.io/" rel="nofollow">AngleSharp</a>, to load HTML page and wait until all stylesheets are downloaded (if required) and all scripts are ready to be parser executed, I do this </p>
  
  <pre><code>    public sealed class WebReader
      {
          private IDocument _ashDocument;
  
          public async Task Load(string Url)
          {
              var config = Configuration.Default.WithDefaultLoader().WithJavaScript().WithCss();
              var context = BrowsingContext.New(config);
              _ashDocument = await context.OpenAsync(Url);
          }
  
          public IEnumerable&lt;string&gt; getImage()
          {
              return  _ashDocument.QuerySelectorAll("img").Select(n =&gt; n.Attributes["src"].Value);
          }
      }
  
      static void Main(string[] args)
      {
          WebReader wReader = new WebReader();           
          AsyncContext.Run((Action)(async () =&gt;
          {
              await wReader.Load("http://blogs.msdn.com/b/dotnet/");
          }));
          IEnumerable&lt;string&gt; imageUrls = wReader.getImage();
          foreach (string url in imageUrls)
          {
              Console.WriteLine(url);
          }
  
          Console.ReadKey();
      }
  </code></pre>
  
  <p>AsyncContext is a part of <a href="https://github.com/StephenCleary/AsyncEx" rel="nofollow">AsyncEx</a> library. </p>
  
  <p>Is it possible to do the same thing without AsyncEx library?</p>