Ejemplo n.º 1
0
        public override void ExecuteCmdlet()
        {
            if (Location != null && string.IsNullOrWhiteSpace(Location))
            {
                throw new PSArgumentNullException("Location");
            }

            WriteObject(StreamAnalyticsClient.GetQuotas(Location), true);
        }
        protected override void ProcessRecord()
        {
            if (Location != null && string.IsNullOrWhiteSpace(Location))
            {
                throw new PSArgumentNullException("Location");
            }

            WriteObject(StreamAnalyticsClient.GetQuotas(Location), true);
        }
        public override void ExecuteCmdlet()
        {
            if (Location != null && string.IsNullOrWhiteSpace(Location))
            {
                throw new PSArgumentNullException("Location");
            }

            List <PSQuota> quotas = StreamAnalyticsClient.GetQuotas(Location);

            if (quotas != null)
            {
                if (quotas.Count == 1 && Location != null)
                {
                    WriteObject(quotas[0]);
                }
                else
                {
                    WriteObject(quotas, true);
                }
            }
        }