Exemplo n.º 1
0
        public AppService(PlatformDb db)
        {
            #region Preconditions

            if (db == null) throw new ArgumentNullException(nameof(db));

            #endregion

            this.db = db;
        }
Exemplo n.º 2
0
        public HostService(PlatformDb db, ec2::Ec2Client ec2)
        {
            #region Preconditions

            if (db == null) throw new ArgumentNullException(nameof(db));

            #endregion

            this.db = db;
            this.ec2 = ec2;
        }
Exemplo n.º 3
0
        public HostManager(IAwsCredential awsCredential, PlatformDb db, IEventLogger eventLog)
        {
            Validate.NotNull(awsCredential, nameof(awsCredential));

            this.db       = db ?? throw new ArgumentNullException(nameof(db));
            this.eventLog = eventLog ?? throw new ArgumentNullException(nameof(eventLog));

            var region = AwsRegion.USEast1; // TODO: Configurable

            ec2 = new Ec2Client(region, awsCredential);
            ssm = new SsmClient(region, awsCredential);

            var elb = new ElbClient(region, awsCredential);

            this.clusterService      = new ClusterService(db);
            this.clusterManager      = new ClusterManager(clusterService, elb, eventLog);
            this.hostService         = new HostService(db);
            this.imageService        = new ImageService(db);
            this.hostTemplateService = new HostTemplateService(db);
        }
Exemplo n.º 4
0
 public NetworkService(PlatformDb db)
 {
     this.db = db ?? throw new ArgumentNullException(nameof(db));
 }
Exemplo n.º 5
0
 public DistributionService(PlatformDb db)
 {
     this.db = db ?? throw new ArgumentNullException(nameof(db));
 }
Exemplo n.º 6
0
 public MachineTypeService(PlatformDb db)
 {
     this.db = db ?? throw new ArgumentNullException(nameof(db));
 }
Exemplo n.º 7
0
 public EnvironmentProgramService(PlatformDb db)
 {
     this.db = db ?? throw new ArgumentNullException(nameof(db));
 }
Exemplo n.º 8
0
 public ProgramReleaseService(PlatformDb db, IProgramService programService)
 {
     this.db             = db ?? throw new ArgumentNullException(nameof(db));
     this.programService = programService ?? throw new ArgumentNullException(nameof(programService));
 }
Exemplo n.º 9
0
        public void PlatformDbKeysAndIndexesAreUnder767Bytes()
        {
            var database = new PlatformDb(dbContext);

            KeysAndIndexesAreUnder767Bytes(database);
        }
Exemplo n.º 10
0
 public HostTemplateService(PlatformDb db)
 {
     this.db = db ?? throw new ArgumentNullException(nameof(db));
 }