Exemplo n.º 1
0
        public override void ExecuteCmdlet()
        {
            base.ExecuteCmdlet();

            if (Tail.IsPresent)
            {
                foreach (string logLine in WebsitesClient.StartLogStreaming(
                             Name,
                             Path,
                             Message,
                             StopCondition,
                             WaitInterval))
                {
                    WriteObject(logLine);
                }
            }
            else if (ListPath.IsPresent)
            {
                WriteObject(WebsitesClient.ListLogPaths(Name).Select(i => i.Name), true);
            }
        }