public DbDeploymentManager(DbDeploymentManagerConfiguration config, IAssemblyLoader assemblyLoader, IDbConnectionInfoBuilder dbConnectionInfoBuilder) { if (config.Database == null) { throw new InvalidOperationException("No database endpoint provided"); } m_Config = config; m_AssemblyLoader = assemblyLoader; m_ConnectionInfoBuilder = dbConnectionInfoBuilder; m_TargetAssembly = new Lazy <Assembly>(LazyLoadTargetAssembly); m_DeployedAssembly = new Lazy <Assembly>(LazyLoadDeployedAssembly); m_InitializerInfo = new Lazy <ContextTypeInitializerInfo>(LazyLoadInitializerInfo); if (string.IsNullOrWhiteSpace(m_Config.DeploymentHistoryExtractPath)) { m_Config.DeploymentHistoryExtractPath = Path.GetTempPath(); Log.Debug( "Deployment History extract path not specified. Defaulting to temp directory {tempDirectory}.", m_Config.DeploymentHistoryExtractPath); } }
public DbDeploymentManager(DbDeploymentManagerConfiguration config, IAssemblyLoader assemblyLoader, IDbConnectionInfoBuilder dbConnectionInfoBuilder) { if (config.Database == null) { throw new InvalidOperationException("No database endpoint provided"); } m_Config = config; m_AssemblyLoader = assemblyLoader; m_ConnectionInfoBuilder = dbConnectionInfoBuilder; m_TargetAssembly = new Lazy<Assembly>(LazyLoadTargetAssembly); m_DeployedAssembly = new Lazy<Assembly>(LazyLoadDeployedAssembly); m_InitializerInfo = new Lazy<ContextTypeInitializerInfo>(LazyLoadInitializerInfo); if (string.IsNullOrWhiteSpace(m_Config.DeploymentHistoryExtractPath)) { m_Config.DeploymentHistoryExtractPath = Path.GetTempPath(); Log.Debug( "Deployment History extract path not specified. Defaulting to temp directory {tempDirectory}.", m_Config.DeploymentHistoryExtractPath); } }