3using System.Threading.Tasks;
14 : base(
"/DeletePackage")
18 public override bool HandlesSubPaths =>
false;
19 public override bool UserSessions =>
true;
29 string FullFileName = Path.Combine(
XmppServerModule.PackagesFolder, FileName);
30 if (File.Exists(FullFileName))
31 File.Delete(FullFileName);
33 Package Package = await Provisioning.ProvisioningComponent.GetPackage(FileName);
39 if (File.Exists(FullFileName))
40 File.Delete(FullFileName);
Static class managing the runtime environment of the IoT Gateway.
static IUser AssertUserAuthenticated(HttpRequest Request, string Privilege)
Makes sure a request is being made from a session with a successful user login.
The request could not be understood by the server due to malformed syntax. The client SHOULD NOT repe...
Represents an HTTP request.
bool HasData
If the request has data.
async Task< object > DecodeDataAsync()
Decodes data sent in request.
Represets a response of an HTTP client request.
Base class for all synchronous HTTP resources. A synchronous resource responds within the method hand...
Static interface for database persistence. In order to work, a database provider has to be assigned t...
static async Task Delete(object Object)
Deletes an object in the database.
Contains information about a software package.
bool Downloadable
If package should be made downloadable via web interface.
async Task POST(HttpRequest Request, HttpResponse Response)
Executes the POST method on the resource.
bool AllowsPOST
If the POST method is allowed.
Service Module hosting the XMPP broker and its components.
POST Interface for HTTP resources.