public void Initialize(ProviderRepositoryBase repository) { ProviderRepositoryInfo info = repository.GetProviderRepositoryInfo(Key); providerSettings = info.ProviderSettings; defaultProviderName = info.DefaultProviderName; }
private ProviderRepositoryFactory() { this._Cache = new Dictionary <string, object>(); ProviderRepository repository = new ProviderRepository(); ProviderRepositoryInfo info = repository.GetProviderRepositoryInfo(Key); providerSettings = info.ProviderSettings; defaultProviderName = info.DefaultProviderName; }
public void SaveInstance(ProviderRepositoryBase repository) { ProviderRepositoryInfo info = new ProviderRepositoryInfo(); foreach (var item in providerSettings) { info.ProviderSettings.Add(item); } info.DefaultProviderName = defaultProviderName; repository.SaveProviderRepositoryInfo(this.Key, info); }
public abstract void SaveProviderRepositoryInfo(string providerFactoryKey, ProviderRepositoryInfo providerRepositoryInfo);