Search Results for

    Show / Hide Table of Contents

    Class LoginService

    Inheritance
    object
    LoginService
    Implements
    ILoginService
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: LemonEdge.Client.Core.Authentication
    Assembly: LemonEdge.ClientCore.dll
    Syntax
    public class LoginService : ILoginService

    Constructors

    LoginService(IClientAuthenticationSettingsRepository, IClientAuthenticationManager, IStatusNotifier, ILogger<LoginService>, IOptions<ConnectionSettings>, IDatabaseStatusProxy)

    Declaration
    public LoginService(IClientAuthenticationSettingsRepository authSettingsRepo, IClientAuthenticationManager authenticationManager, IStatusNotifier statusNotifier, ILogger<LoginService> logger, IOptions<ConnectionSettings> connectionSettings, IDatabaseStatusProxy databaseStatusProxy)
    Parameters
    Type Name Description
    IClientAuthenticationSettingsRepository authSettingsRepo
    IClientAuthenticationManager authenticationManager
    IStatusNotifier statusNotifier
    ILogger<LoginService> logger
    IOptions<ConnectionSettings> connectionSettings
    IDatabaseStatusProxy databaseStatusProxy

    Methods

    LoginAsync(IConnector, ConnectionProfile, string, string, string, CancellationToken)

    Performs the login action for the given connection profile (i.e. ConnectionType and ILoginProvider)

    Declaration
    public 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
    public void UpdateNotifier(IStatusNotifier notifier)
    Parameters
    Type Name Description
    IStatusNotifier notifier

    Implements

    ILoginService

    Extension Methods

    LinqExtensions.AsArray<T>(T)
    LinqExtensions.ToArrayOfOne<T>(T)
    LinqExtensions.ToListOfOne<T>(T)
    MiscExtensions.SetIfNotEqual<T, TP>(T, Expression<Func<T, TP>>, TP)
    WeakReferenceExtensions.WeakReference(object)
    SQLExtensions.ToSQLValue(object, bool)
    ReflectionExtensions.ClearEventInvocations(object, string)
    StringExtensions.ToCSVFormatString(object, Type)
    In this article
    Back to top © LemonEdge Technologies. All rights reserved.