protected override void ProcessRecord()
{
try
{
base.ProcessRecord();
string result = this.GetDeploymentStatusProcess(CloudServiceUtilities.TryGetServiceRootPath(CurrentPath()), ServiceName, Slot, Subscription);
WriteObject(result);
}
catch (Exception ex)
{
WriteError(new ErrorRecord(ex, string.Empty, ErrorCategory.CloseError, null));
}
}