Exemplo n.º 1
0
 public bool FindSubNet(DatabaseAvailabilityGroupSubnetId subnetToFind, out DatabaseAvailabilityGroupNetwork existingNetwork, out DatabaseAvailabilityGroupNetworkSubnet existingSubnet)
 {
     existingNetwork = null;
     existingSubnet  = null;
     foreach (DatabaseAvailabilityGroupNetwork databaseAvailabilityGroupNetwork in this.Networks)
     {
         foreach (DatabaseAvailabilityGroupNetworkSubnet databaseAvailabilityGroupNetworkSubnet in databaseAvailabilityGroupNetwork.Subnets)
         {
             if (databaseAvailabilityGroupNetworkSubnet.SubnetId.Equals(subnetToFind))
             {
                 existingNetwork = databaseAvailabilityGroupNetwork;
                 existingSubnet  = databaseAvailabilityGroupNetworkSubnet;
                 return(true);
             }
         }
     }
     return(false);
 }
Exemplo n.º 2
0
 // Token: 0x06001748 RID: 5960 RVA: 0x0006020D File Offset: 0x0005E40D
 internal ExchangeSubnet(DatabaseAvailabilityGroupNetworkSubnet subnet)
 {
     this.m_subnet = subnet;
 }
 public DAGNetworkSubnetItem(DatabaseAvailabilityGroupNetworkSubnet subnet)
 {
     this.state     = subnet.State.ToString();
     this.ipAddress = subnet.SubnetId.ToString();
 }