public void InitializeFromRegistry(IDataSourceRegistryProvider provider) { var registry = provider.Get(RegistryKey); if (registry == null) { return; } foreach (var p in registry.Parameters) { switch (p.Name) { case "APIToken": { APIToken = SecurityService.DecyptValue(p.Value); break; } } } }
public IDataSourceReader ConnectFromRegistry(IDataSourceRegistryProvider provider) { InitializeFromRegistry(provider); return(this); }