/// <summary>
 /// Write Network mapping.
 /// </summary>
 /// <param name="networkMapping">Network mapping</param>
 private void WriteNetworkMapping(NetworkMapping networkMapping)
 {
     this.WriteObject(new ASRNetworkMapping(networkMapping));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ASRNetworkMapping" /> class with required
 /// parameters.
 /// </summary>
 /// <param name="networkMapping">Network mapping object</param>
 public ASRNetworkMapping(NetworkMapping networkMapping)
 {
     this.ID = networkMapping.Id;
     this.Name = networkMapping.Name;
     this.FriendlyName = networkMapping.Name;
     this.PrimaryNetworkId = networkMapping.Id.Substring(0, networkMapping.Id.IndexOf("/replicationNetworkMappings"));
     this.PrimaryNetworkFriendlyName = networkMapping.Properties.PrimaryNetworkFriendlyName;
     this.RecoveryNetworkId = networkMapping.Properties.RecoveryNetworkId;
     this.RecoveryNetworkFriendlyName = networkMapping.Properties.RecoveryNetworkFriendlyName;
     this.PairingStatus = networkMapping.Properties.PairingStatus;
 }