Exemplo n.º 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);
        }
Exemplo n.º 2
0
 public MockRetryWebClient(IWebResponse response, bool synchronous)
 {
     realWebClient    = new MockWebClient(response);
     this.synchronous = synchronous;
 }