title: How to create chaining tasks
body: <p>I want to create a chaining logic with for schedule.</p>
  
  <ol>
  <li>Access token will get every 1 hour.</li>
  <li>If access token get success, Get the version</li>
  <li><p>But access token will continue if version.HasNextVersion false.</p>
  
  <pre><code>public async Task&lt;string&gt; GetAccessToken(){
    /// getting token from server as async.
  }
  
  public async Task&lt;string&gt; GetVersions(string token){
      // Web request as async
      var version = await GetVersionsFromServer(token); 
  
     // if there are any other version after this version, I will get the next
      if(version.HasNextVersion) 
         await GetVersions();
  }
  
  string Main(){
  
   var accessToken = GetAccessToken().Wait();
  
   var version =  GetVersions(string token).Wait();
  
  }
  </code></pre></li>
  </ol>
  
  <p>I am new at asynchrşnous operations and Task library. Is this possible?</p>