public void Configure(IMvxPluginConfiguration configuration)
        {
            if (configuration != null && !(configuration is DroidModernHttpClientConfiguration))
                throw new MvxException(
                    "Plugin configuration only supports instances of DroidModernHttpClientConfiguration, you provided {0}",
                    configuration.GetType().Name);

            _config = (DroidModernHttpClientConfiguration)configuration;
        }
Esempio n. 2
0
        public void Configure(IMvxPluginConfiguration configuration)
        {
            if (configuration != null && !(configuration is DroidModernHttpClientConfiguration))
            {
                throw new MvxException(
                          "Plugin configuration only supports instances of DroidModernHttpClientConfiguration, you provided {0}",
                          configuration.GetType().Name);
            }

            _config = (DroidModernHttpClientConfiguration)configuration;
        }