Ejemplo n.º 1
0
        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 NetworkSecurityGroupManager(INetworkSecurityGroupService nsgService)
 {
     this.nsgService = nsgService ?? throw new ArgumentNullException(nameof(nsgService));
 }