Class ServerWebRequestAdapter
Inheritance
System.Object
ServerWebRequestAdapter
Implements
Namespace: DotNetNuke.Entities.Host
Assembly: DotNetNuke.dll
Syntax
public class ServerWebRequestAdapter : object, IServerWebRequestAdapter
Methods
| Improve this Doc View SourceCheckResponse(HttpWebResponse, ServerInfo, ref HttpStatusCode)
Check whether response is return from correct server.
Declaration
public virtual 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. |
GetServerUniqueId()
Get the server's unique id when server is behind affinity tool.
Declaration
public virtual string GetServerUniqueId()
Returns
Type | Description |
---|---|
System.String | The ID. |
GetServerUrl()
Get the server's endpoint which can access the server directly.
Declaration
public virtual string GetServerUrl()
Returns
Type | Description |
---|---|
System.String | The URL or |
ProcessRequest(HttpWebRequest, ServerInfo)
Process Request before the request send to server.
Declaration
public virtual void ProcessRequest(HttpWebRequest request, ServerInfo server)
Parameters
Type | Name | Description |
---|---|---|
HttpWebRequest | request | The Http Request Object. |
ServerInfo | server | The Server Info Object. |