public static IResponseCookies Append(this IResponseCookies cookies, IAspNetCoreCookie cookie) { cookies.Append(cookie.Key, cookie.DefaultValue, cookie.Options); return(cookies); }
public static string Value(this IAspNetCoreCookie cookie, IRequestCookieCollection cookies) => cookies[cookie.Key] ?? cookie.DefaultValue;
public static string Get(this IRequestCookieCollection cookies, IAspNetCoreCookie cookie) => cookie.Value(cookies);