public override void ExecuteCmdlet() { if (Uri != null && Uri.Port <= 0) { WriteWarning(string.Format(Resources.NoPortSpecified, Uri)); } var toUse = Uri ?? new Uri(string.Format("https://{0}:{1}", Host, Port)); WriteObject(DataLakeAnalyticsClient.UpdateSecret(Account, DatabaseName, Secret.UserName, Secret.GetNetworkCredential().Password, toUse.AbsoluteUri)); }
public override void ExecuteCmdlet() { WriteWarning(Resources.IncorrectOutputTypeWarning); if (Uri != null && Uri.Port <= 0) { WriteWarning(string.Format(Resources.NoPortSpecified, Uri)); } var toUse = Uri ?? new Uri(string.Format("https://{0}:{1}", DatabaseHost, Port)); // TODO: Remove the WriteObject during next breaking change release, since this object // is always null. WriteObject(DataLakeAnalyticsClient.UpdateSecret(Account, DatabaseName, Secret.UserName, Secret.GetNetworkCredential().Password, toUse.AbsoluteUri)); }