@@ -16,6 +16,7 @@ public static class WatcherExt
16
16
/// The action to invoke when the server closes the connection.
17
17
/// </param>
18
18
/// <returns>a watch object</returns>
19
+ [ Obsolete ( "This method will be deprecated in future versions." ) ]
19
20
public static Watcher < T > Watch < T , L > (
20
21
this Task < HttpOperationResponse < L > > responseTask ,
21
22
Action < WatchEventType , T > onEvent ,
@@ -52,6 +53,7 @@ private static Func<Task<TextReader>> MakeStreamReaderCreator<T, L>(Task<HttpOpe
52
53
/// The action to invoke when the server closes the connection.
53
54
/// </param>
54
55
/// <returns>a watch object</returns>
56
+ [ Obsolete ( "This method will be deprecated in future versions." ) ]
55
57
public static Watcher < T > Watch < T , L > (
56
58
this HttpOperationResponse < L > response ,
57
59
Action < WatchEventType , T > onEvent ,
@@ -71,6 +73,7 @@ public static Watcher<T> Watch<T, L>(
71
73
/// <param name="onError">a callback when any exception was caught during watching</param>
72
74
/// <param name="cancellationToken">cancellation token</param>
73
75
/// <returns>IAsyncEnumerable of watch events</returns>
76
+ [ Obsolete ( "This method will be deprecated in future versions." ) ]
74
77
public static IAsyncEnumerable < ( WatchEventType , T ) > WatchAsync < T , L > (
75
78
this Task < HttpOperationResponse < L > > responseTask ,
76
79
Action < Exception > onError = null ,
0 commit comments