This is a migrated thread and some comments may be shown as answers.

getting issue while invoking a Asp.Net Core Web API from Xamarin

1 Answer 82 Views
Window
This is a migrated thread and some comments may be shown as answers.
Ojusvee
Top achievements
Rank 1
Ojusvee asked on 28 Jun 2018, 09:14 AM
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.

1 Answer, 1 is accepted

Sort by
0
Mohit
Top achievements
Rank 1
answered on 11 Jul 2018, 05:49 AM
I suggest you could create a custom HttpMessageHandler to add the token to the request and use MobileServiceClient send the request.
Tags
Window
Asked by
Ojusvee
Top achievements
Rank 1
Answers by
Mohit
Top achievements
Rank 1
Share this question
or