3using System.Threading.Tasks;
20 : base(
"/DeleteExport")
69 if (FileName.EndsWith(
".key", StringComparison.CurrentCultureIgnoreCase))
74 if (!Directory.Exists(Dir))
77 string FullFileName = Dir + Path.DirectorySeparatorChar + FileName;
78 if (!File.Exists(FullFileName))
81 File.Delete(FullFileName);
85 Response.StatusCode = 200;
87 await Response.
Write(
"1");
Plain text encoder/decoder.
const string DefaultContentType
text/plain
Static class managing the application event log. Applications and services log events on this static ...
static void Informational(string Message, string Object, string Actor, string EventId, EventLevel Level, string Facility, string Module, string StackTrace, params KeyValuePair< string, object >[] Tags)
Logs an informational event.
Static class managing data export.
static async Task< string > GetFullExportFolderAsync()
Full path to export folder.
static async Task< string > GetFullKeyExportFolderAsync()
Full path to key folder.
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.
Deletes an exported file.
override bool UserSessions
If the resource uses user sessions.
async Task POST(HttpRequest Request, HttpResponse Response)
Executes the POST method on the resource.
bool AllowsPOST
If the POST method is allowed.
override bool HandlesSubPaths
If the resource handles sub-paths.
DeleteExport()
Deletes an exported file.
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.
async Task Write(byte[] Data)
Returns binary data in the response.
Base class for all synchronous HTTP resources. A synchronous resource responds within the method hand...
The server has not found anything matching the Request-URI. No indication is given of whether the con...
POST Interface for HTTP resources.