Table of Contents

Class BuilderExtensions

Namespace
The.WPF.Shell.Login
Assembly
Instagile.WPF.dll
public static class BuilderExtensions
Inheritance
BuilderExtensions
Inherited Members

Methods

public static void AddChangePasswordLink(this ISubmenuBuilder menuBuilder, string title, Func<string, string?> validatePassword, Func<IServices, string, string, Task> setPasswordAsync, PasswordStrength minimumPasswordStrengthScore)

Parameters

menuBuilder ISubmenuBuilder
title string
validatePassword Func<string, string>
setPasswordAsync Func<IServices, string, string, Task>
minimumPasswordStrengthScore PasswordStrength
public static void AddChangePasswordLink(this ISubmenuBuilder menuBuilder, PasswordAuthentication passwordAuthentication)

Parameters

menuBuilder ISubmenuBuilder
passwordAuthentication PasswordAuthentication

UseIntegratedLogin(Builder, IHttpClientFactory?, Uri?, Action<IntegratedLoginOptions>?)

Sets up a TabbedShell with a LoginScreen and "Change password" and "Sign out" menu buttons.

public static Builder UseIntegratedLogin(this Builder builder, IHttpClientFactory? autoupdateClientFactory = null, Uri? autoupdateServerAddress = null, Action<IntegratedLoginOptions>? configure = null)

Parameters

builder Builder
autoupdateClientFactory IHttpClientFactory

This parameter is passed through to the AutoUpdater constructor. Autoupdates will be disabled if neither the client factory nor the server address is set.

autoupdateServerAddress Uri

This parameter is passed through to the AutoUpdater constructor. Autoupdates will be disabled if neither the client factory nor the server address is set.

configure Action<IntegratedLoginOptions>

Set options to control LoginScreen behaviour.

Returns

Builder