public RegistryProcess(SqlConnection connection, PluginConfig pluginConfig, RegistryProcessStarter starter) { this.db = new IAMDatabase(connection); this.dbAux = new IAMDatabase(connection); iRegistryProcess(pluginConfig, starter); }
private void iRegistryProcess(PluginConfig pluginConfig, RegistryProcessStarter starter) { this.pluginUri = starter.pluginUri; this.resourcePluginId = starter.resourcePluginId; this.resourceId = starter.resourceId; this.pluginId = starter.pluginId; this.importId = starter.importId; this.packageId = starter.packageId; this.enterpriseId = starter.enterpriseId; //this.conn = new SqlConnection(; this.pluginConfig = pluginConfig; this.contextId = starter.contextId; this.internalLog = new StringBuilder(); TestTimer tmp = new TestTimer("RegistryProcess->Deserialize package", null); try { this.package = JSON.Deserialize <PluginConnectorBaseImportPackageUser>(starter.package); } catch (Exception ex) { throw new Exception("Error on deserialize package", ex); } tmp.Stop(dbAux.Connection, null); #if DEBUG //this.db.Debug = true; #endif if (pluginConfig == null) { throw new Exception("Resource x plugin not found"); } }
public RegistryProcess(String server, String dbName, String username, String password, PluginConfig pluginConfig, RegistryProcessStarter starter) { this.db = new IAMDatabase(server, dbName, username, password); this.dbAux = new IAMDatabase(server, dbName, username, password); iRegistryProcess(pluginConfig, starter); }