Interface IPreferenceMirror
- Namespace
- The.Web.Preferences
- Assembly
- Instagile.Web.Client.dll
An ambient copy of what will probably be the user's preferences, in PreferenceCookie format. Readable synchronously for use in first render; refreshed when preferences are loaded or flushed.
public interface IPreferenceMirror
Methods
TryRead(IJSRuntime)
The mirrored value, or null when no mirror is available in this environment.
string? TryRead(IJSRuntime js)
Parameters
jsIJSRuntime
Returns
WriteAsync(IJSRuntime, string, CancellationToken)
Updates the mirror if one is available in this environment.
ValueTask WriteAsync(IJSRuntime js, string encoded, CancellationToken cancellationToken)
Parameters
jsIJSRuntimeencodedstringcancellationTokenCancellationToken