RequestContext.Reply 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.
Replies to a request message.
Overloads
Reply(Message) |
When overridden in a derived class, replies to a request message. |
Reply(Message, TimeSpan) |
When overridden in a derived class, replies to a request message within a specified interval of time. |
Reply(Message)
- Source:
- RequestContext.cs
- Source:
- RequestContext.cs
- Source:
- RequestContext.cs
When overridden in a derived class, replies to a request message.
public:
abstract void Reply(System::ServiceModel::Channels::Message ^ message);
public abstract void Reply (System.ServiceModel.Channels.Message message);
abstract member Reply : System.ServiceModel.Channels.Message -> unit
Public MustOverride Sub Reply (message As Message)
Parameters
Remarks
Use Reply when it is acceptable for the current thread to be blocked while it replies to the request message. The thread is blocked up to the specified timeout
.
If the application processing must continue without waiting for the reply to complete, use the asynchronous BeginReply method. This method receives notification, through a callback, of the identity of the event handler for the operation. The operation is not complete until either a message becomes available in the channel or the time-out occurs.
Applies to
Reply(Message, TimeSpan)
- Source:
- RequestContext.cs
- Source:
- RequestContext.cs
- Source:
- RequestContext.cs
When overridden in a derived class, replies to a request message within a specified interval of time.
public:
abstract void Reply(System::ServiceModel::Channels::Message ^ message, TimeSpan timeout);
public abstract void Reply (System.ServiceModel.Channels.Message message, TimeSpan timeout);
abstract member Reply : System.ServiceModel.Channels.Message * TimeSpan -> unit
Public MustOverride Sub Reply (message As Message, timeout As TimeSpan)
Parameters
- timeout
- TimeSpan
The TimeSpan that specifies the interval of time to wait for the reply to a request.
Remarks
Use Reply when it is acceptable for the current thread to be blocked while it replies to the request message. The thread is blocked up to the specified timeout
.
If the application processing must continue without waiting for the reply to complete, use the asynchronous BeginReply method. This method receives notification, through a callback, of the identity of the event handler for the operation. The operation is not complete until either a message becomes available in the channel or the time-out occurs.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기