Overclock.net - An Overclocking Community

Overclock.net - An Overclocking Community (https://www.overclock.net/forum/)
-   Coding and Programming (https://www.overclock.net/forum/142-coding-programming/)
-   -   getting issue while invoking a Asp.Net Core Web API from Xamarin (https://www.overclock.net/forum/142-coding-programming/1702786-getting-issue-while-invoking-asp-net-core-web-api-xamarin.html)

Ojusvee06 07-05-2018 03:42 AM

getting issue while invoking a Asp.Net Core Web API from Xamarin
 
I am using the MobileServiceClient (Microsoft.Azure.Mobile.Client version 4.0.1) with the InvokeApiAsync method to do the call but always fails with a null exception. If I call an API that does not have authorization, it works fine.

So my question is if I can use the MobileServiceClient or this doesn't want to work with .NET Core. I don't want to call my APIs with HttpClient.

mohit0707 07-11-2018 02:05 AM

I suggest you could create a custom HttpMessageHandler to add the token to the request and use MobileServiceClient send the request.


All times are GMT -7. The time now is 02:04 AM.

Powered by vBulletin® Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.

User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2019 DragonByte Technologies Ltd.
vBulletin Security provided by vBSecurity (Pro) - vBulletin Mods & Addons Copyright © 2019 DragonByte Technologies Ltd.

vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2019 DragonByte Technologies Ltd.