Exemple #1
0
 public Task StartListening()
 {
     try
     {
         _Client         = _Parent.CreateHttpClient();
         _Client.Timeout = TimeSpan.FromMilliseconds(Timeout.Infinite);
         var request = new HttpRequestMessage(HttpMethod.Get, WithTrailingSlash(_Parent.BaseUrl) + "v1/invoices/subscribe");
         _Parent._Authentication.AddAuthentication(request);
         _ListenLoop = ListenLoop(request);
     }
     catch
     {
         Dispose();
     }
     return(Task.CompletedTask);
 }
Exemple #2
0
 internal HttpClient CreateHttpClient()
 {
     return(LndSwaggerClient.CreateHttpClient(_LndSettings, _DefaultHttpClient));
 }