Xamarin.Forms Where do you keep your JsonServiceClient instance

I just start integrating one of our Xamarin.Forms apps made by an agency with our back office.

Where do you keep the client instance of JsonServiceClient once it is authenticate ? Do you keep it as a static variable in App.xaml.cs ?

We need to authenticate with the back office then request a service… I don’t want to authenticate each time I try to Get a request. The client remember his session.


Yeah keep a static/singleton instance, it doesn’t matter where.

1 Like