Esempio n. 1
0
        public BuildMonitor(BuildMonitorConfiguration configuration, IHttpChannel httpChannel,
                            BuildSucceeded buildSuccessfulCallback,
                            BuildFailed buildFailedCallback,
                            FailedToEvaluateBuildStatus failedToEvaluateBuildStatus)
        {
            if (configuration == null)
            {
                throw new ArgumentNullException("configuration");
            }

            if (httpChannel == null)
            {
                throw new ArgumentNullException("httpChannel");
            }

            _configuration               = configuration;
            _httpChannel                 = httpChannel;
            _buildSuccessfulCallback     = buildSuccessfulCallback;
            _buildFailedCallback         = buildFailedCallback;
            _failedToEvaluateBuildStatus = failedToEvaluateBuildStatus;
        }
        public BuildMonitor(BuildMonitorConfiguration configuration, IHttpChannel httpChannel,
                                                                     BuildSucceeded buildSuccessfulCallback, 
                                                                     BuildFailed buildFailedCallback, 
                                                                     FailedToEvaluateBuildStatus failedToEvaluateBuildStatus)
        {
            if(configuration == null)
            {
                throw new ArgumentNullException("configuration");
            }

            if (httpChannel == null)
            {
                throw new ArgumentNullException("httpChannel");
            }

            _configuration = configuration;
            _httpChannel = httpChannel;
            _buildSuccessfulCallback = buildSuccessfulCallback;
            _buildFailedCallback = buildFailedCallback;
            _failedToEvaluateBuildStatus = failedToEvaluateBuildStatus;
        }