Exemple #1
0
        //Public for use in PowerShell
        public static PrtgClient Initialize_Client(IWebResponse response)
        {
            var webClient = new MockWebClient(response);

            var client = new PrtgClient("prtg.example.com", "username", "12345678", AuthMode.PassHash, webClient);

            return(client);
        }
 public MockRetryWebClient(IWebResponse response, bool synchronous)
 {
     realWebClient    = new MockWebClient(response);
     this.synchronous = synchronous;
 }