ServiceHealthBehavior.HandleHealthRequest 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.
Returns the response message to a specified request.
public:
override void HandleHealthRequest(System::ServiceModel::ServiceHostBase ^ serviceHost, System::ServiceModel::Channels::Message ^ httpGetRequest, cli::array <System::String ^> ^ queries, [Runtime::InteropServices::Out] System::ServiceModel::Channels::Message ^ % replyMessage);
public override void HandleHealthRequest (System.ServiceModel.ServiceHostBase serviceHost, System.ServiceModel.Channels.Message httpGetRequest, string[] queries, out System.ServiceModel.Channels.Message replyMessage);
override this.HandleHealthRequest : System.ServiceModel.ServiceHostBase * System.ServiceModel.Channels.Message * string[] * Message -> unit
Public Overrides Sub HandleHealthRequest (serviceHost As ServiceHostBase, httpGetRequest As Message, queries As String(), ByRef replyMessage As Message)
Parameters
- serviceHost
- ServiceHostBase
An instance of the service host that contains the WCF service with the ServiceHealthBehavior enabled.
- httpGetRequest
- Message
The HTTP request made to the health endpoint.
- queries
- String[]
An array containing the field/value pairs of the query string.
- replyMessage
- Message
When the method returns, the response message of the health behavior. This message has a content type of text/html
or text/xml
, depending on whether the request was for XML or HTML.
Exceptions
Remarks
This method is invoked by the ServiceHealthBehaviorBase instance and is responsible for crafting the response message to the health endpoint.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기