Class SwitchUser
This command executes the SwitchUser system command
Launches the login dialog box again and allows the user to login with different credentials, or into an entirely new system. If sucessfull the application will reload under the new connection
Inherited Members
Namespace: LemonEdge.Client.Core.Commands
Assembly: LemonEdge.ClientCore.dll
Syntax
[CommandDescriptorOptions(Command.SwitchUser, null)]
public class SwitchUser : EPCommand, IHasChildren<EPCommandWithDescriptor>, IHasChildren, IEPCommand, ICommand, IDisposable
Constructors
SwitchUser(IModelLayoutCommon)
Creates a new SwitchUser command
Declaration
public SwitchUser(IModelLayoutCommon owner)
Parameters
| Type | Name | Description |
|---|---|---|
| IModelLayoutCommon | owner | The owning context for this command |
Methods
InternalCanExecute(object)
True if the command is running with an owner of the main application form
Declaration
public override bool InternalCanExecute(object parameter)
Parameters
| Type | Name | Description |
|---|---|---|
| object | parameter | The command parameter |
Returns
| Type | Description |
|---|---|
| bool | True if the command is running with an owner of the main application form |
Overrides
InternalExecuteAsync(object)
Launches the login dialog box again and allows the user to login with different credentials, or into an entirely new system. If sucessfull the application will reload under the new connection
Declaration
public override Task InternalExecuteAsync(object parameter)
Parameters
| Type | Name | Description |
|---|---|---|
| object | parameter | The command parameter |
Returns
| Type | Description |
|---|---|
| Task | A task indicating the completion of the operation |
Overrides
Switch(IModelLayoutCommon)
Launches the login dialog box again and allows the user to login with different credentials, or into an entirely new system. If sucessfull the application will reload under the new connection
Declaration
public static Task Switch(IModelLayoutCommon owner)
Parameters
| Type | Name | Description |
|---|---|---|
| IModelLayoutCommon | owner | The main form application context |
Returns
| Type | Description |
|---|---|
| Task | A task indicating the completion of the operation |