public DeploymentController(IApplicationRepository applicationRepository, IDeploymentRepository deploymentRepository, IApplicationHashingService applicationHashingService, IAuditRepository auditRepository) { this.applicationRepository = applicationRepository; this.deploymentRepository = deploymentRepository; this.applicationHashingService = applicationHashingService; this.auditRepository = auditRepository; }
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; } }
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; } }