ChannelWaitForStateChangedAsync Method |
Returned tasks completes once channel state has become different from
given lastObservedState.
If deadline is reached or and error occurs, returned task is cancelled.
Namespace: Grpc.CoreAssembly: Grpc.Core (in Grpc.Core.dll) Version: 0.6.1.0
Syntaxpublic Task WaitForStateChangedAsync(
ChannelState lastObservedState,
Nullable<DateTime> deadline = null
)
Public Function WaitForStateChangedAsync (
lastObservedState As ChannelState,
Optional deadline As Nullable(Of DateTime) = Nothing
) As Task
public:
Task^ WaitForStateChangedAsync(
ChannelState lastObservedState,
Nullable<DateTime> deadline = nullptr
)
member WaitForStateChangedAsync :
lastObservedState : ChannelState *
?deadline : Nullable<DateTime>
(* Defaults:
let _deadline = defaultArg deadline null
*)
-> Task
Parameters
- lastObservedState
- Type: Grpc.CoreChannelState
[Missing <param name="lastObservedState"/> documentation for "M:Grpc.Core.Channel.WaitForStateChangedAsync(Grpc.Core.ChannelState,System.Nullable{System.DateTime})"]
- deadline (Optional)
- Type: SystemNullableDateTime
[Missing <param name="deadline"/> documentation for "M:Grpc.Core.Channel.WaitForStateChangedAsync(Grpc.Core.ChannelState,System.Nullable{System.DateTime})"]
Return Value
Type:
Task
See Also