示例#1
0
        /// <summary>
        /// Configure the plugin
        /// </summary>
        /// <param name="configuration">Plugin configuration data</param>
        public void Configure(IMvxPluginConfiguration configuration)
        {
            if (configuration == null)
            {
                throw new ArgumentNullException("configuration", "The Feedback Dialog needs at least the ApplicationReviewUrl and FeedbackEmailAddress configured");
            }

            _configuration = configuration as FeedbackDialogConfiguration;
        }
示例#2
0
        /// <summary>
        /// Sets the configuration data for the plugin
        /// </summary>
        /// <param name="configuration">Configuration that will be used by the plugin</param>
        internal void SetConfiguration(FeedbackDialogConfiguration configuration)
        {
            if (configuration == null)
            {
                throw new ArgumentNullException("configuration");
            }

            _configuration = configuration;
        }