public override DeploymentTask CreateDeploymentTask(IObjectFactory objectFactory)
        {
            if (objectFactory == null)
              {
            throw new ArgumentNullException("objectFactory");
              }

              return
            new DeployDbProjectDeploymentTask(
              objectFactory.CreateProjectInfoRepository(),
              objectFactory.CreateEnvironmentInfoRepository(),
              objectFactory.CreateArtifactsRepository(),
              objectFactory.CreateDbScriptRunnerFactory(),
              objectFactory.CreateDbVersionProvider(),
              objectFactory.CreateFileAdapter(),
              objectFactory.CreateZipFileAdapter());
        }
示例#2
0
        public override DeploymentTask CreateDeploymentTask(IObjectFactory objectFactory, string projectConfigurationName, string projectConfigurationBuildId, string targetEnvironmentName)
        {
            if (objectFactory == null)
              {
            throw new ArgumentNullException("objectFactory");
              }

              return
            new MigrateDbDeploymentTask(
              objectFactory.CreateEnvironmentInfoRepository(),
              objectFactory.CreateArtifactsRepository(),
              objectFactory.CreateDbScriptRunnerFactory(),
              objectFactory.CreateDbVersionProvider(),
              this,
              projectConfigurationName,
              projectConfigurationBuildId,
              targetEnvironmentName);
        }
示例#3
0
        public override DeploymentTask CreateDeploymentTask(IObjectFactory objectFactory)
        {
            if (objectFactory == null)
              {
            throw new ArgumentNullException("objectFactory");
              }

              return
            new DeployDbProjectDeploymentTask(
              objectFactory.CreateProjectInfoRepository(),
              objectFactory.CreateEnvironmentInfoRepository(),
              objectFactory.CreateArtifactsRepository(),
              objectFactory.CreateDbScriptRunnerFactory(),
              objectFactory.CreateDbVersionProvider(),
              objectFactory.CreateFileAdapter(),
              objectFactory.CreateZipFileAdapter(),
              objectFactory.CreateScriptsToRunWebSelector(),
              objectFactory.CreateMsSqlDatabasePublisher(),
              objectFactory.CreateDbManagerFactory(),
              objectFactory.CreateUserNameNormalizer(),
              objectFactory.CreateDirectoryAdapter());
        }
        public override DeploymentTask CreateDeploymentTask(IObjectFactory objectFactory)
        {
            if (objectFactory == null)
            {
                throw new ArgumentNullException("objectFactory");
            }

            return
                (new DeployDbProjectDeploymentTask(
                     objectFactory.CreateProjectInfoRepository(),
                     objectFactory.CreateEnvironmentInfoRepository(),
                     objectFactory.CreateArtifactsRepository(),
                     objectFactory.CreateDbScriptRunnerFactory(),
                     objectFactory.CreateDbVersionProvider(),
                     objectFactory.CreateFileAdapter(),
                     objectFactory.CreateZipFileAdapter(),
                     objectFactory.CreateScriptsToRunWebSelector(),
                     objectFactory.CreateMsSqlDatabasePublisher(),
                     objectFactory.CreateDbManagerFactory(),
                     objectFactory.CreateUserNameNormalizer(),
                     objectFactory.CreateDirectoryAdapter()));
        }