title: How to await an IAsyncAction method?
body: <p>I am trying to use <code>IAsyncAction</code> method but on awaiting I am getting an error saying:</p>
  
  <blockquote>
    <p>"An await operation can only be used in a async lambda function"</p>
  </blockquote>
  
  <p>Can anyone help in finding the correct format of returning a async function that doesn't return anything</p>
  
  <pre><code>IAsyncAction ICameraHelper.startCameraPreview(CaptureElement PreviewControl)
  {
      try
      {
          return Task.Run(() =&gt;
          {
              await InitializeCameraAsync(PreviewControl);
              RegisterEventHandlers();
          }).AsAsyncAction();
      }
      catch (Exception ex)
      {
          throw ex;
      }
  }
  </code></pre>