Exemplo n.º 1
0
        public void OnGet(string monitoredPathName, string branchName, int days, DateTime startDateTime, DateTime endDateTime)
        {
            CommitRepository localRepository = new CommitRepository(this.logger);

            if (startDateTime == DateTime.MinValue)
            {
                this.MPConfig = localRepository.Get(this.localMonitoredPathConfig.Value, monitoredPathName, branchName, days);
                return;
            }

            this.MPConfig = localRepository.Get(this.localMonitoredPathConfig.Value, monitoredPathName, branchName, startDateTime, endDateTime);
        }