title: Getting error on AuthenticationParameters and AcquireToken
body: <p>I am getting following errors:</p>
  <p><strong>Code:</strong>
  string redirectUrl = ConfigurationManager.AppSettings[&quot;RedirectUrl&quot;];
  AuthenticationParameters ap = <strong>AuthenticationParameters.CreateFromResourceUrlAsync</strong>(new Uri(redirectUrl)).Result;</p>
  <p><strong>Error:</strong>
  An object reference is required for the non-static field, method, or property 'AuthenticationParameters.CreateFromResourceUrlAsync(Uri)'    Pending email for Authorizers   C:\Users\handemv\source\Workspaces\Dynamics 365\Trunk-UCI\Tools\Automation_CapGSupport\Pending Email\Pending email for Authorizers\PendingEmailCheck.cs</p>
  <p><strong>Code:</strong>
  AuthenticationContext authContext = new AuthenticationContext(_authority, false);
  AuthenticationResult result = authContext.<strong>AcquireToken</strong>(_serviceUri, clientCred);</p>
  <p><strong>Error:</strong>
  AuthenticationContext' does not contain a definition for 'AcquireToken' and no accessible extension method 'AcquireToken' accepting a first argument of type 'AuthenticationContext' could be found (are you missing a using directive or an assembly reference?)</p>
  <p>Can anyone help me for same?</p>