Updated documentation
This commit is contained in:
@@ -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();
|
||||
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user