mirror of
https://github.com/Sarsoo/IF.Lastfm.git
synced 2024-10-16 23:13:07 +01:00
Fixing syro after httpclient changes
This commit is contained in:
parent
57092d7bc9
commit
b28c3c1471
@ -1,6 +1,8 @@
|
|||||||
using System.IO;
|
using System;
|
||||||
|
using System.IO;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
using IF.Lastfm.Core;
|
||||||
using IF.Lastfm.Core.Api;
|
using IF.Lastfm.Core.Api;
|
||||||
using IF.Lastfm.Core.Api.Commands;
|
using IF.Lastfm.Core.Api.Commands;
|
||||||
using IF.Lastfm.Core.Api.Helpers;
|
using IF.Lastfm.Core.Api.Helpers;
|
||||||
@ -16,6 +18,11 @@ public DummyPostAsyncCommand(ILastAuth auth) : base(auth)
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected override Uri BuildRequestUrl()
|
||||||
|
{
|
||||||
|
return new Uri(LastFm.ApiRootSsl, UriKind.Absolute);
|
||||||
|
}
|
||||||
|
|
||||||
public override void SetParameters()
|
public override void SetParameters()
|
||||||
{
|
{
|
||||||
AddPagingParameters();
|
AddPagingParameters();
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using System.Net.Http;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using System.Windows;
|
using System.Windows;
|
||||||
@ -271,6 +272,9 @@ private async Task ExecuteSelectedCommand()
|
|||||||
countProperty.SetValue(instance, int.Parse(_state.CommandItemCount));
|
countProperty.SetValue(instance, int.Parse(_state.CommandItemCount));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var httpClientProperty = genericType.GetProperty("HttpClient", BindingFlags.Public | BindingFlags.Instance);
|
||||||
|
httpClientProperty.SetValue(instance, new HttpClient());
|
||||||
|
|
||||||
var parametersProperty = genericType.GetProperty("Parameters",
|
var parametersProperty = genericType.GetProperty("Parameters",
|
||||||
BindingFlags.Public | BindingFlags.Instance);
|
BindingFlags.Public | BindingFlags.Instance);
|
||||||
parametersProperty.SetValue(instance, parameters);
|
parametersProperty.SetValue(instance, parameters);
|
||||||
|
Loading…
Reference in New Issue
Block a user