-
-
Notifications
You must be signed in to change notification settings - Fork 455
Move Old HttpWebRequest to HttpClient Instance #178
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 all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
7c35c3e
Merge branch 'dev'
jjw24 d42d35e
Merge pull request #101 from Flow-Launcher/dev
jjw24 5f23f3d
Merge pull request #110 from Flow-Launcher/dev
jjw24 8a9c338
Merge pull request #112 from Flow-Launcher/dev
jjw24 a8bfe6e
Merge pull request #124 from Flow-Launcher/dev
jjw24 135f63a
Merge pull request #146 from Flow-Launcher/dev
jjw24 4ea5dd5
Move Old HttpWebRequest to HttpClient Instance (solve connection time…
taooceros a16cc5b
Move Old HttpWebRequest to HttpClient Instance (solve connection time…
taooceros bfd1c9a
Merge branch 'master' of github.com:taooceros/Flow.Launcher into Upda…
taooceros c55e889
Change Download to HttpClient as well (which change it to async as well)
taooceros 424d757
Add Task.Run due to the change of async download
taooceros db0b4c1
Merge remote-tracking branch 'upstream/dev' into UpdateHttpMaster
taooceros 85f5766
Optimize a few code
taooceros 96609f7
Change the place of Wait in PluginManifest to make code more elegent
taooceros 5ab8c4f
Update Proxy every time calling a http request method since the proxy…
taooceros 88fa862
Use event triggered update method instead of checking Proxy every tim…
taooceros d015fce
Merge Upstream
taooceros 8ec781d
Merge branch 'UpdateHttpMaster' of github.com:taooceros/Flow.Launcher…
taooceros 7dc66ea
Merge dev
taooceros cfa93a2
Add GetStreamAsync method
taooceros a806f7d
Change exception type
taooceros 4d5119f
Add out of bound exception for pattern matching
taooceros e364b84
Use auto property
taooceros 0c97db0
1. Change Get method Name to GetAsync
taooceros efa4908
Change usage of Http in Updater.cs and adding ConfigureAwait(false) f…
taooceros d4f94c6
Make InstallOrUpdate to async
taooceros d0743f6
Await Http.Download in Update method
taooceros c485578
Use CompareTo to check update for InstallOrUpdate method
taooceros 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,80 @@ | ||
| namespace Flow.Launcher.Infrastructure.UserSettings | ||
| using System.ComponentModel; | ||
|
|
||
| namespace Flow.Launcher.Infrastructure.UserSettings | ||
| { | ||
| public enum ProxyProperty | ||
| { | ||
| Enabled, | ||
| Server, | ||
| Port, | ||
| UserName, | ||
| Password | ||
| } | ||
|
|
||
| public class HttpProxy | ||
| { | ||
| public bool Enabled { get; set; } = false; | ||
| public string Server { get; set; } | ||
| public int Port { get; set; } | ||
| public string UserName { get; set; } | ||
| public string Password { get; set; } | ||
| private bool _enabled = false; | ||
| private string _server; | ||
| private int _port; | ||
| private string _userName; | ||
| private string _password; | ||
|
|
||
| public bool Enabled | ||
| { | ||
| get => _enabled; | ||
| set | ||
| { | ||
| _enabled = value; | ||
| OnPropertyChanged(ProxyProperty.Enabled); | ||
| } | ||
| } | ||
|
|
||
| public string Server | ||
| { | ||
| get => _server; | ||
| set | ||
| { | ||
| _server = value; | ||
| OnPropertyChanged(ProxyProperty.Server); | ||
| } | ||
| } | ||
|
|
||
| public int Port | ||
| { | ||
| get => _port; | ||
| set | ||
| { | ||
| _port = value; | ||
| OnPropertyChanged(ProxyProperty.Port); | ||
| } | ||
| } | ||
|
|
||
| public string UserName | ||
| { | ||
| get => _userName; | ||
| set | ||
| { | ||
| _userName = value; | ||
| OnPropertyChanged(ProxyProperty.UserName); | ||
| } | ||
| } | ||
|
|
||
| public string Password | ||
| { | ||
| get => _password; | ||
| set | ||
| { | ||
| _password = value; | ||
| OnPropertyChanged(ProxyProperty.Password); | ||
| } | ||
| } | ||
|
|
||
| public delegate void ProxyPropertyChangedHandler(ProxyProperty property); | ||
| public event ProxyPropertyChangedHandler PropertyChanged; | ||
|
|
||
| private void OnPropertyChanged(ProxyProperty property) | ||
| { | ||
| PropertyChanged?.Invoke(property); | ||
| } | ||
| } | ||
| } |
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.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
client.GetAsync crashes the entire app for me when i try to install plugin. Cant see any reason why though, no exception is thrown
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let me take a check.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh that's because before the Http.Download is not async, so no await is added there.