• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Interface IServerWebRequestAdapter

IServerWebRequestAdapter used to get server's info when new server added into server collections. Also it can process the request when send to a server, like sync cache, detect server etc.

Namespace: DotNetNuke.Entities.Host
Assembly: DotNetNuke.dll
Syntax
public interface IServerWebRequestAdapter

Methods

| Improve this Doc View Source

CheckResponse(HttpWebResponse, ServerInfo, ref HttpStatusCode)

Check whether response is return from correct server.

Declaration
void CheckResponse(HttpWebResponse response, ServerInfo server, ref HttpStatusCode statusCode)
Parameters
Type Name Description
HttpWebResponse response

The Http Response Object.

ServerInfo server
HttpStatusCode statusCode

Out status code if you think the status need change.

| Improve this Doc View Source

GetServerUniqueId()

Get the server's unique id when server is behind affinity tool.

Declaration
string GetServerUniqueId()
Returns
Type Description
System.String

The ID.

| Improve this Doc View Source

GetServerUrl()

Get the server's endpoint which can access the server directly.

Declaration
string GetServerUrl()
Returns
Type Description
System.String

The URL or .

| Improve this Doc View Source

ProcessRequest(HttpWebRequest, ServerInfo)

Process Request before the request send to server.

Declaration
void ProcessRequest(HttpWebRequest request, ServerInfo server)
Parameters
Type Name Description
HttpWebRequest request

The Http Request Object.

ServerInfo server

The Server Info Object.

Extension Methods

JsonExtensionsWeb.ToJson(Object)
  • View Source
Back to top by the community, for the community... #DNNCMS