public override void ExecuteCmdlet()
{
try
{
this.WriteWarningWithTimestamp(
string.Format(
Properties.Resources.CmdletWillBeDeprecatedSoon,
this.MyInvocation.MyCommand.Name));
NetworkListResponse networkListResponse =
RecoveryServicesClient.GetAzureSiteRecoveryNetworks(this.Server.ID);
this.WriteNetworks(networkListResponse.Networks);
}
catch (Exception exception)
{
this.HandleException(exception);
}
}