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.
Implements
System.Windows.Input.ICommand
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: LemonEdge.Client.Core.Commands
Assembly: ClientCore.dll
Syntax
[CommandDescriptorOptions(Commands.RefreshServers, null)]
public class RefreshServers : EPCommand, IHasChildren<EPCommandWithDescriptor>, IHasChildren, IEPCommand, ICommand, IDisposable
Constructors
RefreshServers(IModelLayoutCommon)
Creates a new RefreshServers command
Declaration
public RefreshServers(IModelLayoutCommon owner)
Parameters
Type | Name | Description |
---|---|---|
IModelLayoutCommon | owner | The owning context for this command |
Methods
InternalCanExecute(Object)
True
Declaration
public override bool InternalCanExecute(object parameter)
Parameters
Type | Name | Description |
---|---|---|
System.Object | parameter | The command parameter |
Returns
Type | Description |
---|---|
System.Boolean | 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 |
---|---|---|
System.Object | parameter | The command parameter |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A task indicating the completion of the operation |
Overrides
Implements
System.Windows.Input.ICommand
System.IDisposable