Class CookieService
Inheritance
object
CookieService
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.AspNetCore.Components.Web
Assembly: Volo.Abp.AspNetCore.Components.Web.dll
Syntax
[Dependency(ReplaceServices = true)]
public class CookieService : ICookieService, ITransientDependency
Constructors
CookieService(IJSRuntime)
Declaration
public CookieService(IJSRuntime jsRuntime)
Parameters
| Type | Name | Description |
|---|---|---|
| Microsoft.JSInterop.IJSRuntime | jsRuntime |
Properties
JsRuntime
Declaration
public IJSRuntime JsRuntime { get; }
Property Value
| Type | Description |
|---|---|
| Microsoft.JSInterop.IJSRuntime |
Methods
DeleteAsync(string, string)
Declaration
public ValueTask DeleteAsync(string key, string path = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | |
| string | path |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.ValueTask |
GetAsync(string)
Declaration
public ValueTask<string> GetAsync(string key)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.ValueTask<TResult><string> |
SetAsync(string, string, CookieOptions)
Declaration
public ValueTask SetAsync(string key, string value, CookieOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | |
| string | value | |
| CookieOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.ValueTask |