public NetworkManager( INetworkService networkService, ISubnetService subnetService, Ec2Client ec2Client) { this.networkService = networkService ?? throw new ArgumentNullException(nameof(networkService)); this.subnetService = subnetService ?? throw new ArgumentNullException(nameof(subnetService)); this.ec2Client = ec2Client ?? throw new ArgumentNullException(nameof(ec2Client)); }
public NetworkInterfaceManager( Ec2Client ec2, INetworkService networkService, ISubnetService subnetService, INetworkInterfaceService networkInterfaceService, INetworkSecurityGroupService nsgService) { this.networkService = networkService ?? throw new ArgumentNullException(nameof(networkService)); this.networkInterfaces = networkInterfaceService ?? throw new ArgumentNullException(nameof(networkInterfaceService)); this.subnetService = subnetService ?? throw new ArgumentNullException(nameof(subnetService)); this.ec2 = ec2 ?? throw new ArgumentNullException(nameof(ec2)); this.nsgManager = new NetworkSecurityGroupManager(nsgService); }
public VpcController( IVpcService vpcService, ISubnetService subnetService, IRouteTableService routeTableService, IInternetGatewayService internetGatewayService, IDhcpOptionsSetService dhcpOptionsSetService, INetworkAclsService networkAclsService, ISecurityGroupService securityGroupService, IDescribeVpcMapper describeVpcMapper, IDescribeSubnetMapper describeSubnetMapper, IDescribeRouteTableMapper describeRouteTableMapper, IInternetGatewayMapper internetGatewayMapper, IDhcpOptionsSetsMapper dhcpOptionsSetsMapper, INetworkAclsMapper networkAclsMapper, ISecurityGroupMapper securityGroupMapper) { _vpcService = vpcService; _subnetService = subnetService; _routeTableService = routeTableService; _internetGatewayService = internetGatewayService; _dhcpOptionsSetService = dhcpOptionsSetService; _networkAclsService = networkAclsService; _securityGroupService = securityGroupService; _describeVpcMapper = describeVpcMapper; _describeSubnetMapper = describeSubnetMapper; _describeRouteTableMapper = describeRouteTableMapper; _internetGatewayMapper = internetGatewayMapper; _dhcpOptionsSetsMapper = dhcpOptionsSetsMapper; _networkAclsMapper = networkAclsMapper; _securityGroupMapper = securityGroupMapper; }