Table of Contents

Class ViewLoginCommandHandler

Namespace
Loehnert.Lisrt.Users.Commands
Assembly
Loehnert.Lisrt.dll

ICommandHandler to log a user in.

[CommandHandler]
public class ViewLoginCommandHandler : CommandHandlerBase<ViewLoginCommandDefinition>, ICommandHandler<ViewLoginCommandDefinition>, ICommandHandler
Inheritance
ViewLoginCommandHandler
Implements
Inherited Members

Constructors

ViewLoginCommandHandler(IUserManager)

Initializes a new instance of the ViewLoginCommandHandler class.

[ImportingConstructor]
public ViewLoginCommandHandler(IUserManager userManager)

Parameters

userManager IUserManager

Manager for the users.

Exceptions

ArgumentNullException

Thrown when userManager is null.

Methods

Run(Command)

Executes the login method of the IUserManager. Opens a login window by default.

public override Task Run(Command command)

Parameters

command Command

The executing command.

Returns

Task

Completed when completed.