コード例 #1
0
 public UploadPackageHandler(
     SheepItDbContext dbContext,
     DeploymentProcessFactory deploymentProcessFactory)
 {
     _dbContext = dbContext;
     _deploymentProcessFactory = deploymentProcessFactory;
 }
コード例 #2
0
 public UpdateEnvironmentsHandler(
     SheepItDbContext dbContext,
     EnvironmentFactory environmentFactory)
 {
     _dbContext          = dbContext;
     _environmentFactory = environmentFactory;
 }
コード例 #3
0
 public CreatePackageHandler(
     SheepItDbContext dbContext,
     PackageFactory packageFactory)
 {
     _dbContext      = dbContext;
     _packageFactory = packageFactory;
 }
コード例 #4
0
ファイル: EnvironmentFactory.cs プロジェクト: sheepit/sheepit
 public EnvironmentFactory(
     IdStorage idStorage,
     SheepItDbContext dbContext)
 {
     _idStorage = idStorage;
     _dbContext = dbContext;
 }
コード例 #5
0
ファイル: TestDatabase.cs プロジェクト: sheepit/sheepit
 public static async Task ResetSequences(SheepItDbContext dbContext)
 {
     await ExecuteNonQueryCommand(dbContext, @"
         SELECT SETVAL(c.oid, 1, false)
         FROM pg_class c JOIN pg_namespace n
         ON n.oid = c.relnamespace
         WHERE c.relkind = 'S' AND n.nspname = 'public';
     ");
 }
コード例 #6
0
 public CreatePackageHandler(
     SheepItDbContext dbContext,
     PackageFactory packageFactory,
     DeploymentProcessFactory deploymentProcessFactory)
 {
     _dbContext                = dbContext;
     _packageFactory           = packageFactory;
     _deploymentProcessFactory = deploymentProcessFactory;
 }
コード例 #7
0
 public DeployPackageHandler(
     SheepItDbContext dbContext,
     DeploymentFactory deploymentFactory,
     RunDeployment runDeployment)
 {
     _dbContext         = dbContext;
     _deploymentFactory = deploymentFactory;
     _runDeployment     = runDeployment;
 }
コード例 #8
0
ファイル: TestDatabase.cs プロジェクト: sheepit/sheepit
        private static async Task ExecuteNonQueryCommand(SheepItDbContext dbContext, string sqlCommand)
        {
            await using var command = dbContext.Database
                                      .GetDbConnection()
                                      .CreateCommand();

            command.CommandText = sqlCommand;
            command.CommandType = CommandType.Text;

            dbContext.Database.OpenConnection();

            await command.ExecuteNonQueryAsync();
        }
コード例 #9
0
 public CreateProjectHandler(
     SheepItDbContext dbContext,
     PackageFactory packageFactory,
     DeploymentProcessFactory deploymentProcessFactory,
     EnvironmentFactory environmentFactory,
     ProjectFactory projectFactory,
     ComponentFactory componentFactory)
 {
     _dbContext                = dbContext;
     _packageFactory           = packageFactory;
     _deploymentProcessFactory = deploymentProcessFactory;
     _environmentFactory       = environmentFactory;
     _projectFactory           = projectFactory;
     _componentFactory         = componentFactory;
 }
コード例 #10
0
ファイル: TestDatabase.cs プロジェクト: sheepit/sheepit
 public static async Task TruncateDatabase(SheepItDbContext dbContext)
 {
     await ExecuteNonQueryCommand(dbContext, @"
         DO
         $func$
             DECLARE
                 statements CURSOR FOR
                     SELECT tablename FROM pg_tables
                     WHERE schemaname = 'public' and tablename <> '__EFMigrationsHistory';
             BEGIN
                 FOR stmt IN statements LOOP
                     EXECUTE 'TRUNCATE TABLE ' || quote_ident(stmt.tablename) || ' CASCADE;';
                 END LOOP;
             END;
         $func$;
     ");
 }
コード例 #11
0
 public GetEnvironmentsForUpdateHandler(SheepItDbContext dbContext)
 {
     _dbContext = dbContext;
 }
コード例 #12
0
ファイル: UpdateComponents.cs プロジェクト: sheepit/sheepit
 public UpdateComponentsHandler(SheepItDbContext dbContext, ComponentFactory componentFactory)
 {
     _dbContext        = dbContext;
     _componentFactory = componentFactory;
 }
コード例 #13
0
 public ListComponentsHandler(SheepItDbContext dbContext)
 {
     _dbContext = dbContext;
 }
コード例 #14
0
 public GetPackageDetailsHandler(SheepItDbContext dbContext)
 {
     _dbContext = dbContext;
 }
コード例 #15
0
 public GetEnvironmentsListHandler(SheepItDbContext dbContext)
 {
     _dbContext = dbContext;
 }
コード例 #16
0
 public GetProjectDashboardLastDeploymentsQuery(SheepItDbContext dbContext)
 {
     _dbContext = dbContext;
 }
コード例 #17
0
 public GetDeploymentDetailsHandler(
     SheepItDbContext dbContext)
 {
     _dbContext = dbContext;
 }
コード例 #18
0
 public GetDeploymentsListHandler(SheepItDbContext dbContext)
 {
     _dbContext = dbContext;
 }
コード例 #19
0
ファイル: ProjectFactory.cs プロジェクト: sheepit/sheepit
 public ProjectFactory(SheepItDbContext dbContext)
 {
     _dbContext = dbContext;
 }
コード例 #20
0
 public IdStorage(SheepItDbContext context)
 {
     _context = context;
 }
コード例 #21
0
 public GetComponentsForUpdateHandler(SheepItDbContext dbContext)
 {
     _dbContext = dbContext;
 }
コード例 #22
0
 public ListProjectsHandler(SheepItDbContext dbContext)
 {
     _dbContext = dbContext;
 }
コード例 #23
0
 public ListPackageDeploymentsHandler(SheepItDbContext dbContext)
 {
     _dbContext = dbContext;
 }
コード例 #24
0
 public GetProjectDashboardHandler(
     SheepItDbContext dbContext)
 {
     _dbContext = dbContext;
 }
コード例 #25
0
 public GetLastPackageHandler(SheepItDbContext dbContext)
 {
     _dbContext = dbContext;
 }
コード例 #26
0
 public GetPackagesListHandler(SheepItDbContext dbContext)
 {
     _dbContext = dbContext;
 }