public void Configure(IMvxPluginConfiguration configuration) { if (!(configuration is NetworkConfigurationDroid)) { throw new Exception("Configuration does not appear to be a valid NetworkConfiguration."); } _Configuration = (NetworkConfigurationDroid)configuration; }
public NetworkService(NetworkConfigurationDroid configuration) { BaseUrl = configuration.BaseUrl; _Manager = (ConnectivityManager)Application.Context.GetSystemService(Application.ConnectivityService); _WifiManager = (WifiManager)Application.Context.GetSystemService(Application.WifiService); Configuration = configuration; Init(); }
public NetworkService(NetworkConfigurationDroid configuration) { BaseUrl = configuration.BaseUrl; _Manager = (ConnectivityManager)Application.Context.GetSystemService(Application.ConnectivityService); _WifiManager = (WifiManager)Application.Context.GetSystemService(Application.WifiService); _Configuration = configuration; //_Globals = Mvx.Resolve<IMvxAndroidGlobals>(); Init(); }