Esempio n. 1
0
        public ResourceGroupController(IResourceGroupService resourceGroupService,
                                       IResourceGroupSecurityService securityService, ILogger logger)
        {
            if (resourceGroupService == null)
            {
                throw new ArgumentNullException("resourceGroupService");
            }
            _resourceGroupService = resourceGroupService;
            if (securityService == null)
            {
                throw new ArgumentNullException("securityService");
            }
            _securityService = securityService;

            if (logger == null)
            {
                throw new ArgumentNullException("logger");
            }
            _logger = logger;
        }
Esempio n. 2
0
        public ConsulProvider(string consulServerUrl,
                              ILogger logger = null,
                              IResourceGroupService resourceGroupService = null)
        {
            this.consulServerUrl = consulServerUrl;

            if (logger == null)
            {
                this.logger = new NullLogger();
            }
            else
            {
                this.logger = logger;
            }

            if (resourceGroupService == null)
            {
                this.resourceGroupService = new ResourceGroupService();
            }
            else
            {
                this.resourceGroupService = resourceGroupService;
            }
        }
Esempio n. 3
0
 public ResourceGroupsManageController(IResourceGroupService service)
 {
     this.ResGroupService = service;
 }
 public ResourceGroupResolver(IResourceGroupService resourceGroupService,
                              IDataLoaderContextAccessor dataLoaderContextAccessor)
 {
     _resourceGroupService      = resourceGroupService ?? throw new ArgumentNullException(nameof(resourceGroupService));
     _dataLoaderContextAccessor = dataLoaderContextAccessor;
 }