示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ASRProtectionContainerMapping" /> class with 
 /// required parameters.
 /// </summary>
 /// <param name="pc">Protection container mapping object</param>
 public ASRProtectionContainerMapping(ProtectionContainerMapping pcm)
 {
     this.Name = pcm.Name;
     this.ID = pcm.Id;
     this.Health = pcm.Properties.Health;
     this.HealthErrorDetails = pcm.Properties.HealthErrorDetails;
     this.PolicyFriendlyName = pcm.Properties.PolicyFriendlyName;
     this.PolicyId = pcm.Properties.PolicyId;
     this.SourceFabricFriendlyName = pcm.Properties.SourceFabricFriendlyName;
     this.SourceProtectionContainerFriendlyName = pcm.Properties.SourceProtectionContainerFriendlyName;
     this.State = pcm.Properties.State;
     this.TargetFabricFriendlyName = pcm.Properties.TargetFabricFriendlyName;
     this.TargetProtectionContainerFriendlyName = pcm.Properties.TargetProtectionContainerFriendlyName;
     this.TargetProtectionContainerId = pcm.Properties.TargetProtectionContainerId;
 }
 /// <summary>
 /// Write Protection Container Mapping
 /// </summary>
 /// <param name="protectionContainerMapping"></param>
 private void WriteProtectionContainerMapping(ProtectionContainerMapping protectionContainerMapping)
 {
     this.WriteObject(new ASRProtectionContainerMapping(protectionContainerMapping));
 }