Class ScriptService#
Defined in File ScriptService.cs
Inheritance Relationships#
Base Type#
public xbe.sdk.ServiceBase
(Class ServiceBase)
Class Documentation#
- class xbe.sdk.Services.ScriptService : xbe.sdk.ServiceBase#
Public Functions
- string GetScriptsPath (string serviceName)#
- async Task<List<Script>> FindAll (string service, Dictionary<string, string> query)#
Returns all scripts from the system that the user has access to.
- async Task<long?> Count (string service, Dictionary<string, string> query)#
Returns the count of scripts.
- async Task Delete (string service, string id)#
Marks the script as deleted.
- async Task DeleteByIdAndVersion (string service, string id, int version)#
Marks the script as deleted.
- async Task<Script> FindById (string service, string id)#
Returns a single script from the system that the user has access to.
- async Task<Script> FindByIdAndVersion (string service, string id, int version)#
Returns a single script from the system that the user has access to.
- async Task<Script> Publish (string service, string id, int version)#
Marks the script with the given id and version as published, to be executed by the service.
- async Task Purge (string service, string id)#
Removes the script from the database.
- async Task PurgeByIdAndVersion (string service, string id, int version)#
Removes the script from the database.
- async Task<Script> RestoreByIdAndVersion (string service, string id, int version)#
Restores a specific version of a previously deleted script.