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; }
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; } }
public ResourceGroupsManageController(IResourceGroupService service) { this.ResGroupService = service; }
public ResourceGroupResolver(IResourceGroupService resourceGroupService, IDataLoaderContextAccessor dataLoaderContextAccessor) { _resourceGroupService = resourceGroupService ?? throw new ArgumentNullException(nameof(resourceGroupService)); _dataLoaderContextAccessor = dataLoaderContextAccessor; }