public override void ExecuteSiteRecoveryCmdlet()
{
base.ExecuteSiteRecoveryCmdlet();
this.WriteWarningWithTimestamp(
string.Format(Properties.Resources.CmdletWillBeDeprecatedSoon,
this.MyInvocation.MyCommand.Name,
"Get-AzureRmSiteRecoveryProtectableItem or Get-AzureRmSiteRecoveryReplicationProtectedItem"));
switch (this.ParameterSetName)
{
case ASRParameterSets.ByObject:
this.GetAll();
break;
case ASRParameterSets.ByObjectWithName:
this.GetByName();
break;
case ASRParameterSets.ByObjectWithFriendlyName:
this.GetByFriendlyName();
break;
}
}