예제 #1
0
 public DeploymentController(IApplicationRepository applicationRepository, IDeploymentRepository deploymentRepository, IApplicationHashingService applicationHashingService, IAuditRepository auditRepository)
 {
     this.applicationRepository     = applicationRepository;
     this.deploymentRepository      = deploymentRepository;
     this.applicationHashingService = applicationHashingService;
     this.auditRepository           = auditRepository;
 }
 public DeploymentController(IApplicationRepository applicationRepository, IDeploymentRepository deploymentRepository, IApplicationHashingService applicationHashingService, IAuditRepository auditRepository)
 {
     this.applicationRepository = applicationRepository;
     this.deploymentRepository = deploymentRepository;
     this.applicationHashingService = applicationHashingService;
     this.auditRepository = auditRepository;
 }
예제 #3
0
        public AuditManager(IApplicationHashingService hashingService, IAuditRepository auditRepository,
            IDeploymentRepository deploymentRepository, IApplicationRepository applicationRepository, IMailService mailService)
        {
            this.hashingService = hashingService ?? DIContainer.Container.GetInstance<IApplicationHashingService>();
            this.auditRepository = auditRepository ?? DIContainer.Container.GetInstance<IAuditRepository>();
            this.deploymentRepository = deploymentRepository ?? DIContainer.Container.GetInstance<IDeploymentRepository>();
            this.applicationRepository = applicationRepository ?? DIContainer.Container.GetInstance<IApplicationRepository>();
            this.mailService = mailService ?? DIContainer.Container.GetInstance<IMailService>();

            var seconds = Configuration.AuditTimerInSeconds;
            if (seconds > 59)
            {
                timer = new Timer(seconds * 1000);
                timer.Elapsed += Timer_Elapsed;
            }
        }
예제 #4
0
        public AuditManager(IApplicationHashingService hashingService, IAuditRepository auditRepository,
                            IDeploymentRepository deploymentRepository, IApplicationRepository applicationRepository, IMailService mailService)
        {
            this.hashingService        = hashingService ?? DIContainer.Container.GetInstance <IApplicationHashingService>();
            this.auditRepository       = auditRepository ?? DIContainer.Container.GetInstance <IAuditRepository>();
            this.deploymentRepository  = deploymentRepository ?? DIContainer.Container.GetInstance <IDeploymentRepository>();
            this.applicationRepository = applicationRepository ?? DIContainer.Container.GetInstance <IApplicationRepository>();
            this.mailService           = mailService ?? DIContainer.Container.GetInstance <IMailService>();

            var seconds = Configuration.AuditTimerInSeconds;

            if (seconds > 59)
            {
                timer          = new Timer(seconds * 1000);
                timer.Elapsed += Timer_Elapsed;
            }
        }