public static class DesktopServiceStatus Reads the status of application-scoped services.
Methods
Get
public static CapabilityStatus Get(object service) Gets whether service can be used at all.
Parameters
serviceAn application-scoped service, such as the result of a
Create…factory.
Returns
The service's IDesktopServiceStatus.Status, or Available for a service that does not report one.
Exceptions
ArgumentNullExceptionserviceisnull.
Example
var secrets = DesktopPlatformServices.CreateSecretStore("org.example.App");
bool offerRememberMe = DesktopServiceStatus.Get(secrets) is CapabilityStatus.Available;