watcher to support empty response (#313)
* Add a WatchAsync method. * proposal for watcher async * fix and add testcase for async watch * try fix build
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
8ab95b6b92
commit
a95400bd50
@@ -13,8 +13,8 @@ namespace watch
|
||||
|
||||
IKubernetes client = new Kubernetes(config);
|
||||
|
||||
var podlistResp = client.ListNamespacedPodWithHttpMessagesAsync("default", watch: true).Result;
|
||||
using (podlistResp.Watch<V1Pod>((type, item) =>
|
||||
var podlistResp = client.ListNamespacedPodWithHttpMessagesAsync("default", watch: true);
|
||||
using (podlistResp.Watch<V1Pod, V1PodList>((type, item) =>
|
||||
{
|
||||
Console.WriteLine("==on watch event==");
|
||||
Console.WriteLine(type);
|
||||
|
||||
Reference in New Issue
Block a user