use HttpClient rather than IHttpClientFactory as IHttpClientFactory does not pass cookies in .NET MAUI
This commit is contained in:
parent
5a91b143b6
commit
422bf8da59
|
@ -9,7 +9,7 @@ namespace [Owner].Module.[Module].Services
|
|||
{
|
||||
public class [Module]Service : ServiceBase, I[Module]Service
|
||||
{
|
||||
public [Module]Service(IHttpClientFactory http, SiteState siteState) : base(http, siteState) { }
|
||||
public [Module]Service(HttpClient http, SiteState siteState) : base(http, siteState) { }
|
||||
|
||||
private string Apiurl => CreateApiUrl("[Module]");
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user