StoredServiceWorkerRegistration Class

A service worker registration (https://w3c.github.io/ServiceWorker/#dfn-service-worker-registration) stored by a ServiceWorkerBackend.

public sealed class StoredServiceWorkerRegistration

Constructors

NameDescription
StoredServiceWorkerRegistration()

StoredServiceWorkerRegistration()

ServiceWorkerBackend.cs
  • Obsolete: Constructors of types with required members are not supported in this version of your compiler.
[Obsolete("Constructors of types with required members are not supported in this version of your compiler.", true)]
public StoredServiceWorkerRegistration()

No documentation is available.

Properties

NameDescription
ActiveGets the activated service worker, or null.
LastUpdateCheckTimeGets the time of the last update check (https://w3c.github.io/ServiceWorker/#dfn-last-update-check-time), or null.
NavigationPreloadEnabledGets whether the navigation preload is enabled (https://w3c.github.io/ServiceWorker/#service-worker-registration-navigation-preload-enabled-flag).
NavigationPreloadHeaderValueGets the value of the Service-Worker-Navigation-Preload header (https://w3c.github.io/ServiceWorker/#service-worker-registration-navigation-preload-header-value).
ScopeUrlGets the serialized scope URL (https://w3c.github.io/ServiceWorker/#dfn-scope-url).
UpdateViaCacheGets the update via cache mode: imports, all or none (https://w3c.github.io/ServiceWorker/#dfn-update-via-cache).
WaitingGets the installed service worker that waits to be activated, or null.

Gets the activated service worker, or null.

public StoredServiceWorker? Active { get; init; }

Property value

StoredServiceWorker?

LastUpdateCheckTime

ServiceWorkerBackend.cs

Gets the time of the last update check (https://w3c.github.io/ServiceWorker/#dfn-last-update-check-time), or null.

public DateTimeOffset? LastUpdateCheckTime { get; init; }

Property value

DateTimeOffset?

Gets the serialized scope URL (https://w3c.github.io/ServiceWorker/#dfn-scope-url).

public required string ScopeUrl { get; init; }

Property value

string

Gets the update via cache mode: imports, all or none (https://w3c.github.io/ServiceWorker/#dfn-update-via-cache).

public string UpdateViaCache { get; init; }

Property value

string

Gets the installed service worker that waits to be activated, or null.

public StoredServiceWorker? Waiting { get; init; }

Property value

StoredServiceWorker?