public DashboardHandlerFactory(string applicationName, DashboardEnabledMode mode, string handlerUrl, IRepositoryFactory repositoryFactory)
        {
            if (string.IsNullOrEmpty(applicationName))
            {
                throw new ArgumentNullException("applicationName", "applicationName must contain a value.");
            }

            if (string.IsNullOrEmpty(handlerUrl))
            {
                throw new ArgumentNullException("handlerUrl", "handlerUrl must contain a value.");
            }

            if (repositoryFactory == null)
            {
                throw new ArgumentNullException("repositoryFactory", "repositoryFactory cannot be null.");
            }

            this.ApplicationName = applicationName;
            this.Mode = mode;
            this.HandlerUrl = handlerUrl;
            this.RepositoryFactory = repositoryFactory;
        }
Ejemplo n.º 2
0
        public DashboardHandlerFactory(string applicationName, DashboardEnabledMode mode, string handlerUrl, IRepositoryFactory repositoryFactory)
        {
            if (string.IsNullOrEmpty(applicationName))
            {
                throw new ArgumentNullException("applicationName", "applicationName must contain a value.");
            }

            if (string.IsNullOrEmpty(handlerUrl))
            {
                throw new ArgumentNullException("handlerUrl", "handlerUrl must contain a value.");
            }

            if (repositoryFactory == null)
            {
                throw new ArgumentNullException("repositoryFactory", "repositoryFactory cannot be null.");
            }

            this.ApplicationName   = applicationName;
            this.Mode              = mode;
            this.HandlerUrl        = handlerUrl;
            this.RepositoryFactory = repositoryFactory;
        }