ScrewTurn.Wiki.Host.SetProviderConfiguration C# (CSharp) Method

SetProviderConfiguration() public method

Sets the configuration of a provider.
If provider is null.
public SetProviderConfiguration ( IProviderV30 provider, string configuration ) : bool
provider IProviderV30 The provider of which to set the configuration.
configuration string The configuration to set.
return bool
        public bool SetProviderConfiguration(IProviderV30 provider, string configuration)
        {
            if(provider == null) throw new ArgumentNullException("provider");

            if(configuration == null) configuration = "";

            ProviderLoader.SaveConfiguration(provider.GetType().FullName, configuration);

            return true;
        }