Click or drag to resize
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.Core
Assembly: Grpc.Core (in Grpc.Core.dll) Version: 0.6.1.0
Syntax
public Task WaitForStateChangedAsync(
	ChannelState lastObservedState,
	Nullable<DateTime> deadline = null
)

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