CookieThemeService Class

Persist the current theme in a cookie. Requires ThemeService to be registered in the DI container.

Inheritance

Object

CookieThemeService

Namespace: Radzen

Assembly: Radzen.Blazor.dll

Syntax

public class CookieThemeService

Constructors

CookieThemeServicelink

Initializes a new instance of the CookieThemeService class.

Declaration
public CookieThemeService(Microsoft.JSInterop.IJSRuntime jsRuntime, ThemeService themeService, Microsoft.Extensions.Options.IOptions<CookieThemeServiceOptions> options)
Parameters
Type Name Description
Microsoft.JSInterop.IJSRuntime jsRuntime
ThemeService themeService
Microsoft.Extensions.Options.IOptions<CookieThemeServiceOptions> options

Methods

Disposelink

Declaration
public void Dispose()
An error has occurred. This app may no longer respond until reloaded. Reload 🗙