Updated documentation

This commit is contained in:
2025-02-28 12:23:11 +01:00
parent 86ace64618
commit e773871dc0
4 changed files with 35 additions and 17 deletions

View File

@@ -5,10 +5,10 @@ by using Plugins. They are registered as scoped services so you can use DI like
## Add a plugin
Create a class that extends the `HopFramePlugin` class:
Create a class that represents the plugin:
```C#
public class SearchExtension : HopFramePlugin {
public class SearchExtension {
}
```
@@ -60,3 +60,19 @@ public void OnDelete(DeleteEntryEvent e) {
cacheHandler.ClearCache(e.Entity);
}
```
## Useful services
### IFileService
If you want to deal with file uploading / downloading, you can use the `IFileService`:
```C#
public interface IFileService {
public Task DownloadFile(string name, byte[] data);
public Task<IBrowserFile> UploadFile();
}
```