// Token: 0x060001AB RID: 427 RVA: 0x00007978 File Offset: 0x00005B78 public void SetNativeRole(AmNetworkRole newValue) { this.SetCommonProperty <int>("Role", (int)newValue); }
// Token: 0x06001779 RID: 6009 RVA: 0x00060A2C File Offset: 0x0005EC2C internal void SynchronizeClusterNetworkRoles(IAmCluster cluster) { IEnumerable <AmClusterNetwork> enumerable = cluster.EnumerateNetworks(); try { foreach (AmClusterNetwork amClusterNetwork in enumerable) { DatabaseAvailabilityGroupSubnetId databaseAvailabilityGroupSubnetId = ExchangeSubnet.ExtractSubnetId(amClusterNetwork); if (databaseAvailabilityGroupSubnetId != null) { ExchangeSubnet exchangeSubnet = this.FindSubnet(databaseAvailabilityGroupSubnetId); if (exchangeSubnet != null) { AmNetworkRole nativeClusterNetworkRole = exchangeSubnet.Network.GetNativeClusterNetworkRole(); AmNetworkRole nativeRole = amClusterNetwork.GetNativeRole(); if (nativeRole != nativeClusterNetworkRole) { NetworkManager.TraceDebug("Changing network role for subnet {0} from {1} to {2}", new object[] { databaseAvailabilityGroupSubnetId, nativeRole, nativeClusterNetworkRole }); bool flag = false; try { amClusterNetwork.SetNativeRole(nativeClusterNetworkRole); flag = true; } finally { if (!flag) { if (nativeClusterNetworkRole == AmNetworkRole.ClusterNetworkRoleNone) { exchangeSubnet.Network.IgnoreNetwork = false; this.ConfigUpdated = true; } } else { ReplayEventLogConstants.Tuple_NetworkRoleChanged.LogEvent(null, new object[] { amClusterNetwork.Name, databaseAvailabilityGroupSubnetId.ToString(), nativeRole.ToString(), nativeClusterNetworkRole.ToString() }); } } } } } } } finally { foreach (AmClusterNetwork amClusterNetwork2 in enumerable) { using (amClusterNetwork2) { } } } }
private static bool IsMapiNetwork(AmNetworkRole role) { return(role == AmNetworkRole.ClusterNetworkRoleClientAccess || role == AmNetworkRole.ClusterNetworkRoleInternalAndClient); }