public static IResponseCookies Append(this IResponseCookies cookies, IAspNetCoreCookie cookie)
 {
     cookies.Append(cookie.Key, cookie.DefaultValue, cookie.Options);
     return(cookies);
 }
Esempio n. 2
0
 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);