1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

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

Discussion in 'Web Design & Development' started by Ojusvee06, Jul 3, 2018.

Thread Status:
Not open for further replies.
  1. Ojusvee06

    Ojusvee06 Thread Starter

    Joined:
    Jul 3, 2018
    Messages:
    1
    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.
     
  2. mohit0707

    mohit0707

    Joined:
    Jul 11, 2018
    Messages:
    1
    I suggest you could create a custom HttpMessageHandler to add the token to the request and use MobileServiceClient send the request.
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/1212369

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice