コード例 #1
0
        protected override void ProcessRecord()
        {
            if (ShouldProcess("Report Activity", "Get-GRepActivity"))
            {
                var properties = new gDiscovery.Apis.DiscoveryListProperties();

                if (!string.IsNullOrWhiteSpace(Name))
                {
                    properties.name = Name;
                }

                if (Preferred)
                {
                    properties.preferred = true;
                }

                WriteObject(gdiscovery.apis.List(properties, StandardQueryParams: StandardQueryParams).Items);
            }
        }
コード例 #2
0
 public Data.DirectoryList List(gDiscovery.Apis.DiscoveryListProperties properties = null)
 {
     return(gdiscovery.apis.List(properties));
 }