2using System.Threading.Tasks;
15 private readonly
string queueName;
23 this.queueName = QueueName;
59 "Are you sure you want to clear all messages in the queue?");
67 "Unable to clear messages in queue.");
75 "Queue successfully cleared.");
84 return Task.FromResult(Caller.
HasPrivilege(
"Admin.Queues." +
this.queueName +
".Clear"));
102 throw new InvalidOperationException();
Static interface for database persistence. In order to work, a database provider has to be assigned t...
static Task< IPersistedQueue > GetQueue(string QueueName)
Gets a persistent dictionary containing objects in a collection.
Contains information about a language.
Task< string > GetStringAsync(Type Type, int Id, string Default)
Gets the string value of a string ID. If no such string exists, a string is created with the default ...
Command to clear a queue.
ICommand Copy()
Creates a copy of the command object.
string CommandID
ID of command.
string SortKey
Sort Key, if available.
Task< string > GetNameAsync(Language Language)
Gets the displayable name of the command.
ClearQueueCommand(string QueueName)
Command to clear a queue.
string SortCategory
Sort Category, if available.
CommandType Type
Type of command.
Task< string > GetConfirmationStringAsync(Language Language)
Gets a confirmation string, if any, of the command. If no confirmation is necessary,...
Task< bool > CanExecuteAsync(RequestOrigin Caller)
If the command can be executed by the caller.
async Task ExecuteCommandAsync()
Executes the command.
Task StartQueryExecutionAsync(Query Query, Language Language)
Starts the execution of a query.
Task< string > GetSuccessStringAsync(Language Language)
Gets a success string, if any, of the command. If no specific success string is available,...
Task< string > GetFailureStringAsync(Language Language)
Gets a failure string, if any, of the command. If no specific failure string is available,...
Data source mirroring the Gateway.config file.
Class handling the reception of data from a query.
Tokens available in request.
bool HasPrivilege(string Privilege)
If the origin has a given privilege.
Inteface for persisted queues.
Task Clear()
Clears the queue.