Class RefreshServers
This command executes the RefreshServers system command
Invalidates the cache on all the services forcing them to reload. Once complete this client application itself can reload forcing it to load in the new cache from the servers.
Inherited Members
Namespace: LemonEdge.Client.Core.Commands
Assembly: LemonEdge.ClientCore.dll
Syntax
[CommandDescriptorOptions(Command.RefreshServers, null)]
public class RefreshServers : EPCommand, IHasChildren<EPCommandWithDescriptor>, IHasChildren, IEPCommand, ICommand, IDisposable
Constructors
RefreshServers(IRootController, IModelLayoutCommon, IDatabaseStatusProxy)
Creates a new RefreshServers command
Declaration
public RefreshServers(IRootController root, IModelLayoutCommon owner, IDatabaseStatusProxy databaseStatusProxy)
Parameters
Type | Name | Description |
---|---|---|
IRootController | root | The root controller, for service access. |
IModelLayoutCommon | owner | The owning context for this command |
IDatabaseStatusProxy | databaseStatusProxy |
Methods
InternalCanExecute(object)
True
Declaration
public override bool InternalCanExecute(object parameter)
Parameters
Type | Name | Description |
---|---|---|
object | parameter | The command parameter |
Returns
Type | Description |
---|---|
bool | True |
Overrides
InternalExecuteAsync(object)
Invalidates the cache on all the services forcing them to reload. Once complete this client application itself can reload forcing it to load in the new cache from the servers.
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 |