aerogear-xamarin-sdk
AeroGear Xamarin SDK
AeroGear.Mobile.Core.Configuration.MobileCoreJsonParser Class Reference

This class is responsible for consuming a readable stream and producing a tree of config values to be consumed by modules. More...

Static Public Member Functions

static Dictionary< String, ServiceConfigurationParse (Stream jsonStream)
 Parses JSON configuration stream. More...
 
static Dictionary< String, ServiceConfigurationParse (string jsonString)
 Parses JSON configuration string. More...
 

Detailed Description

This class is responsible for consuming a readable stream and producing a tree of config values to be consumed by modules.

Member Function Documentation

◆ Parse() [1/2]

static Dictionary<String, ServiceConfiguration> AeroGear.Mobile.Core.Configuration.MobileCoreJsonParser.Parse ( Stream  jsonStream)
static

Parses JSON configuration stream.

Returns
A dictionary of ServiceConfigs mapped by their name.
Parameters
jsonStreama readable Stream for mobile-core.json file. Please note that this should be managed by the calling core. The parser will not close the resource when it is finished.

◆ Parse() [2/2]

static Dictionary<String, ServiceConfiguration> AeroGear.Mobile.Core.Configuration.MobileCoreJsonParser.Parse ( string  jsonString)
static

Parses JSON configuration string.

Returns
A dictionary of ServiceConfigs mapped by their name.
Parameters
jsonStringstring with json configuration Please note that this should be managed by the calling core. The parser will not close the resource when it is finished.

The documentation for this class was generated from the following file: