示例#1
0
        public void Initialize(ProviderRepositoryBase repository)
        {
            ProviderRepositoryInfo info = repository.GetProviderRepositoryInfo(Key);

            providerSettings    = info.ProviderSettings;
            defaultProviderName = info.DefaultProviderName;
        }
示例#2
0
        private ProviderRepositoryFactory()
        {
            this._Cache = new Dictionary <string, object>();
            ProviderRepository     repository = new ProviderRepository();
            ProviderRepositoryInfo info       = repository.GetProviderRepositoryInfo(Key);

            providerSettings    = info.ProviderSettings;
            defaultProviderName = info.DefaultProviderName;
        }
示例#3
0
        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);
        }
示例#4
0
 public abstract void SaveProviderRepositoryInfo(string providerFactoryKey, ProviderRepositoryInfo providerRepositoryInfo);
		public abstract void SaveProviderRepositoryInfo(string providerFactoryKey, ProviderRepositoryInfo providerRepositoryInfo);