internal void UpdateFrom(DbSecurityOptions source) { this.EncryptedUserName = source.EncryptedUserName; this.EncryptedDomain = source.EncryptedDomain; this.EncryptedPassword = source.EncryptedPassword; this.credentialId = source.credentialId; this.storedCredentials = source.storedCredentials; }
internal Favorites(SqlPersistence persistence, Groups groups, StoredCredentials credentials, ConnectionManager connectionManager, FavoriteIcons favoriteIcons) { this.groups = groups; this.credentials = credentials; this.dispatcher = persistence.Dispatcher; this.connectionManager = connectionManager; this.favoriteIcons = new DbFavoriteImagesStore(this.dispatcher, favoriteIcons); this.batchActions = new FavoritesBatchActions(this, this.cache, persistence); }
internal Factory(Groups groups, Favorites favorites, StoredCredentials credentials, DataDispatcher dispatcher, ConnectionManager connectionManager) { this.groups = groups; this.favorites = favorites; this.credentials = credentials; this.dispatcher = dispatcher; this.connectionManager = connectionManager; }
/// <summary> /// Does not set the protocol options. /// </summary> internal static DbFavorite CreateFavorite(Groups groups, StoredCredentials credentials, DataDispatcher dispatcher) { var favorite = new DbFavorite(); favorite.Display = new DbDisplayOptions(); favorite.Security = new DbSecurityOptions(); favorite.ExecuteBeforeConnect = new DbBeforeConnectExecute(); favorite.AssignStores(groups, credentials, dispatcher); favorite.MarkAsNewlyCreated(); return(favorite); }
public bool Initialize() { if (!this.TryInitializeDatabase()) { return(false); } this.groups = new Groups(); this.credentials = new StoredCredentials(this.Dispatcher); this.favorites = new Favorites(this, this.groups, this.credentials, this.connectionManager, this.favoriteIcons); this.groups.AssignStores(this.Dispatcher, this.favorites); this.connectionHistory = new ConnectionHistory(this.favorites, this.Dispatcher); this.Factory = new Factory(this.groups, this.favorites, this.credentials, this.Dispatcher, this.connectionManager); return(true); }
public void Initialize() { if (!this.TryInitializeDatabase()) { return; } this.Dispatcher = new DataDispatcher(); this.groups = new Groups(); this.credentials = new StoredCredentials(this.security); this.favorites = new Favorites(this.groups, this.credentials, this.security, this.Dispatcher); this.groups.AssignStores(this.Dispatcher, this.favorites); this.connectionHistory = new ConnectionHistory(this.favorites); this.Factory = new Factory(this.groups, this.favorites, this.credentials, this.security, this.Dispatcher); }
internal void AssignStores(Groups groups, StoredCredentials credentials, DataDispatcher dispatcher) { this.groups = groups; this.credentials = credentials; this.Details.Dispatcher = dispatcher; }
internal void UpdateFrom(DbSecurityOptions source) { this.EncryptedUserName = source.EncryptedUserName; this.EncryptedDomain = source.EncryptedDomain; this.EncryptedPassword = source.EncryptedPassword; this.credentialId = source.credentialId; this.storedCredentials = source.storedCredentials; this.persistenceSecurity = source.persistenceSecurity; }
internal void AssignStores(StoredCredentials storedCredentials, PersistenceSecurity persistenceSecurity) { this.storedCredentials = storedCredentials; this.persistenceSecurity = persistenceSecurity; }
internal void AssignStores(StoredCredentials storedCredentials) { this.storedCredentials = storedCredentials; }
public void Initialize() { if(!this.TryInitializeDatabase()) return; this.groups = new Groups(); this.credentials = new StoredCredentials(this.security, this.Dispatcher); this.favorites = new Favorites(this.groups, this.credentials, this.security, this.Dispatcher); this.groups.AssignStores(this.Dispatcher, this.favorites); this.connectionHistory = new ConnectionHistory(this.favorites, this.Dispatcher); this.Factory = new Factory(this.groups, this.favorites, this.credentials, this.security, this.Dispatcher); }