Esempio n. 1
0
        public FifthweekActivityReporter(
            Fifthweek.Logging.IActivityReportingService activityReporter,
            Fifthweek.Api.Core.IRequestContext requestContext,
            Fifthweek.Logging.IDeveloperRepository developerRepository,
            IExceptionHandler exceptionHandler)
        {
            if (activityReporter == null)
            {
                throw new ArgumentNullException("activityReporter");
            }

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

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

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

            this.activityReporter    = activityReporter;
            this.requestContext      = requestContext;
            this.developerRepository = developerRepository;
            this.exceptionHandler    = exceptionHandler;
        }