Interface ILoginService
Namespace: LemonEdge.Client.Core.Authentication
Assembly: LemonEdge.ClientCore.dll
Syntax
public interface ILoginService
Methods
LoginAsync(IConnector, ConnectionProfile, string, string, string, CancellationToken)
Performs the login action for the given connection profile (i.e. ConnectionType and ILoginProvider)
Declaration
Task<UserInfo> LoginAsync(IConnector connector, ConnectionProfile connectionProfile, string username, string password, string dbPassword = "", CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
IConnector | connector | |
ConnectionProfile | connectionProfile | |
string | username | |
string | password | |
string | dbPassword | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<UserInfo> | A valid UserInfo if the login was successful, otherwise null |
UpdateNotifier(IStatusNotifier)
When the service provider is rebuilt we get a new notifier that isn't actuall hooked up to the UI. This allows us to provide the current notifier that is still hooked up to the ui
Declaration
void UpdateNotifier(IStatusNotifier notifier)
Parameters
Type | Name | Description |
---|---|---|
IStatusNotifier | notifier |