Why I can't use HttpContext or HttpCookie? (Asp.Net Core 1.0)
<p>Why can't I use <code>HttpContext</code> or <code>HttpCookie</code>?
Is there a special using?</p>

<p>My actual usings:</p>

<pre><code>using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
</code></pre>

<p>My namespace:</p>

<pre><code>namespace eCoffee.Main
</code></pre>

<p>My class + methods:</p>

<pre><code>public class AppRunCookie
{
    public static string CookieName { get; set; }
    public static string Key { get; set; }
public AppRunCookie(string key)
{
    CookieName = "MyCookie_" + key;
}

public static void SetCookie(string key, int cookieExpireDate = 30)
{
    HttpCookie myCookie = new HttpCookie(CookieName);
    myCookie["Key"] = key;
    myCookie.Expires = DateTime.Now.AddDays(cookieExpireDate);
    HttpContext.Current.Response.Cookies.Add(myCookie);
}

public string GetCookie()
{
    HttpCookie myCookie = HttpContext.Current.Request.Cookies[CookieName];
    if (myCookie != null)
    {
        string key = Convert.ToString(myCookie.Values["Key"]);
        return key;
    }
    return "";
}
}
</code></pre>

<p>What am I do wrong?</p>