I have created a console application.
I am trying to access Session variables and use HttpClient to make Api calls.
I am not able to get Session and HttpClient classes in the namespaces.
I have added the following packages.
<package id="Microsoft.AspNet.WebApi.Client" version="5.2.3" targetFramework="net45" />
<package id="Microsoft.Bcl" version="1.1.10" targetFramework="net45" />
<package id="Microsoft.Bcl.Build" version="1.0.14" targetFramework="net45" />
<package id="Microsoft.Net.Http" version="2.2.29" targetFramework="net45" />
please let me know if i missed out any other package.I want to execute the below code.
I am getting error like:
httpClient is a type but is used like a method.
Here is my Code:
System.Net.Http.HttpClient httpClient = new System.Net.Http.HttpClient();instead.