예제 #1
0
 public void Configure(IMvxPluginConfiguration configuration)
 {
     if (!(configuration is NetworkConfigurationDroid))
     {
         throw new Exception("Configuration does not appear to be a valid NetworkConfiguration.");
     }
     _Configuration = (NetworkConfigurationDroid)configuration;
 }
예제 #2
0
        public NetworkService(NetworkConfigurationDroid configuration)
        {
            BaseUrl = configuration.BaseUrl;

            _Manager      = (ConnectivityManager)Application.Context.GetSystemService(Application.ConnectivityService);
            _WifiManager  = (WifiManager)Application.Context.GetSystemService(Application.WifiService);
            Configuration = configuration;

            Init();
        }
예제 #3
0
        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();
        }