IChannelListener<TChannel>.AcceptChannel Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Accepts a channel of a specified type for communication with a client.
Overloads
AcceptChannel() |
Accepts a channel of a specified type for communication with a client. |
AcceptChannel(TimeSpan) |
Accepts a channel of a specified type for communication with a client within a specified interval of time. |
Remarks
It is recommended that the AcceptChannel(TimeSpan) overload with the explicit timeout be used. The timeout
specified for that method overrides any default timeouts set by the system for the service.
AcceptChannel()
- Source:
- IChannelListener.cs
- Source:
- IChannelListener.cs
- Source:
- IChannelListener.cs
Accepts a channel of a specified type for communication with a client.
public:
TChannel AcceptChannel();
public TChannel AcceptChannel ();
abstract member AcceptChannel : unit -> 'Channel
Public Function AcceptChannel () As TChannel
Returns
A channel of type TChannel
accepted by the listener.
Remarks
It is recommended that the AcceptChannel(TimeSpan) overload with the explicit timeout be used. The timeout
specified for that method overrides any default timeouts set by the system for the service.
Applies to
AcceptChannel(TimeSpan)
- Source:
- IChannelListener.cs
- Source:
- IChannelListener.cs
- Source:
- IChannelListener.cs
Accepts a channel of a specified type for communication with a client within a specified interval of time.
public:
TChannel AcceptChannel(TimeSpan timeout);
public TChannel AcceptChannel (TimeSpan timeout);
abstract member AcceptChannel : TimeSpan -> 'Channel
Public Function AcceptChannel (timeout As TimeSpan) As TChannel
Parameters
- timeout
- TimeSpan
The TimeSpan that specifies how long the wait for a channel operation has to complete before timing out.
Returns
A channel of type TChannel
accepted by the listener.
Remarks
It is recommended that this overload with an explicit timeout be used rather than the AcceptChannel(). The timeout
specified for this method overrides any default timeouts set by the system for the service.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기