-
-
Notifications
You must be signed in to change notification settings - Fork 448
New API Functions Plugin Cache Storage & Use API Functions for Program Plugin & Remove Reflection with Interfaces #3410
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 3 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
2432753
Add plugin json storage
Jack251970 ca221d7
Add binary storage api functions
Jack251970 0496d6c
Use api functions for Program plugin
Jack251970 68e1fc2
Use try remove for safety
Jack251970 8cd81b7
Merge branch 'dev' into binary_storage_api
Jack251970 56536d0
Add log for plugin binary storage
Jack251970 e6d3d0f
Improve code quality
Jack251970 6e5c7ad
Use ISavable interface instead of reflection
Jack251970 3185bda
Use IRemovable interface instead of reflection
Jack251970 c55a453
Merge branch 'dev' into binary_storage_api
Jack251970 9f84a2d
Merge branch 'dev' into binary_storage_api
Jack251970 0619041
Merge branch 'dev' into binary_storage_api
Jack251970 7da2884
Add locks for win32s & uwps
Jack251970 87aca2f
Merge branch 'binary_storage_api' of https://github.com/Jack251970/Fl…
Jack251970 734c5bb
Fix lock release issue
Jack251970 c11ee2f
Improve code quality & comments & Fix lock issue
Jack251970 54e7652
Fix see cref issue
Jack251970 6826802
Improve performance
Jack251970 4c4a6c0
Add log handler for indexing
Jack251970 aaadf16
Fix typos
Jack251970 4749ca2
Improve code comments
Jack251970 2ff09cf
Improve code quality
Jack251970 653b833
Fix typos
Jack251970 d7ca36e
Change variable name
Jack251970 482e373
Remove useless releases
Jack251970 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
Flow.Launcher.Infrastructure/Storage/PluginBinaryStorage.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using System.IO; | ||
|
||
namespace Flow.Launcher.Infrastructure.Storage | ||
{ | ||
public class PluginBinaryStorage<T> : BinaryStorage<T> where T : new() | ||
{ | ||
public PluginBinaryStorage(string cacheName, string cacheDirectory) | ||
{ | ||
DirectoryPath = cacheDirectory; | ||
Helper.ValidateDirectory(DirectoryPath); | ||
|
||
FilePath = Path.Combine(DirectoryPath, $"{cacheName}{FileSuffix}"); | ||
} | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.