Ejemplo n.º 1
0
        public void Populate(Provider pProvider)
        {
            Provider = new ServiceProviderElement();
            Provider.ApplicationId = pProvider.ApplicationId;
            Provider.Name = pProvider.Name;
            Provider.SecurityProviderName = pProvider.SecurityProviderName;
            Provider.ProviderType = pProvider.ProviderType;
            Provider.SourceInfo = pProvider.SourceInfo;


            if (pProvider == null) return;
            SetProvider();
        }
Ejemplo n.º 2
0
        void RemoveProvider(Provider selectedProvider)
        {
           
        
            try
            {

                ServiceProviderSection config = (ServiceProviderSection)configuration.Sections["FwkServiceMetadata"];

                config.Providers.Remove(selectedProvider.Name);
                
                configuration.Save(ConfigurationSaveMode.Minimal, true);
                
                //ServiceMetadata.ProviderSection.Providers.Add(newProvider);
            }
            catch (Exception ex)
            {
                this.ExceptionViewer.Show(ex);
            }
        
        }