title: how to use a Task.Run in a static method
body: <p>I want to use a Task.Run in a static method. But when i m calling the task.run in static method it gets lost.</p>
  
  <pre><code>  public static void TestLevel()
     {
         var UserSetting = Task.Run(async () =&gt;
          {
              return await database.GetSettingByName("test");
          }).Result.Value;
  
          User objuser = new User();
          objuser.usersetting = UserSetting;
     }
  </code></pre>
  
  <p>When it is calling the task.run its not coming back.</p>