public override void ExecuteSiteRecoveryCmdlet()
{
base.ExecuteSiteRecoveryCmdlet();
switch (this.ParameterSetName)
{
case ASRParameterSets.ByPEObject:
this.WriteWarningWithTimestamp(Properties.Resources.ParameterSetWillBeDeprecatedSoon);
this.protectionEntityName = this.ProtectionEntity.Name;
this.protectionContainerName = this.ProtectionEntity.ProtectionContainerId;
this.fabricName = Utilities.GetValueFromArmId(this.ProtectionEntity.ID, ARMResourceTypeConstants.ReplicationFabrics);
this.SetPEReprotect();
break;
case ASRParameterSets.ByRPIObject:
this.protectionContainerName =
Utilities.GetValueFromArmId(this.ReplicationProtectedItem.ID, ARMResourceTypeConstants.ReplicationProtectionContainers);
this.fabricName = Utilities.GetValueFromArmId(this.ReplicationProtectedItem.ID, ARMResourceTypeConstants.ReplicationFabrics);
this.SetRPIReprotect();
break;
case ASRParameterSets.ByRPObject:
this.SetRPReprotect();
break;
}
}