Skip to main content

LocalStorage

Assembly: ServiceStack.Blazor.dll
View Source
Declaration
public class LocalStorage : ILocalStorage

Methods

SetStringAsync(String, String)

View Source
Declaration
public async Task SetStringAsync(string name, string value)
Returns

Task

Parameters
TypeName
System.Stringname
System.Stringvalue

SetItemAsync<T>(String, T)

View Source
Declaration
public Task SetItemAsync<T>(string name, T value)
Returns

Task

Parameters
TypeName
System.Stringname
<T>value
Type Parameters
  • T

GetStringAsync(String)

View Source
Declaration
public async Task<string> GetStringAsync(string name)
Returns

Task<System.String>

Parameters
TypeName
System.Stringname

GetItemAsync<T>(String)

View Source
Declaration
public async Task<T> GetItemAsync<T>(string name)
Returns

Task<<T>>

Parameters
TypeName
System.Stringname
Type Parameters
  • T

RemoveAsync(String)

View Source
Declaration
public async Task RemoveAsync(string name)
Returns

Task

Parameters
TypeName
System.Stringname

Implements