HTTP policy server needed for the communication with Silverlight applications.

Namespace: Eneter.Messaging.MessagingSystems.HttpMessagingSystem
Assembly: Eneter.Messaging.Framework (in Eneter.Messaging.Framework.dll) Version: 5.0.0.0 (5.0.0.0)

Syntax

C#
public class HttpPolicyServer
Visual Basic
Public Class HttpPolicyServer
Visual C++
public ref class HttpPolicyServer

Remarks

The policy server is required by Silverlight for the communication via HTTP or TCP. (See also TcpPolicyServer.) Windows Phone 7 (based on Silverlight 3 too) does not require the policy server.

The HTTP policy server is a special service listening to the HTTP root address. When it receives the request with the path '/clientaccesspolicy.xml', it returns the content of the policy file.

Silverlight automatically uses this service before an HTTP request is invoked. If the Silverlight application invokes the HTTP request (e.g. http://127.0.0.1/MyService/), Silverlight first sends the request on the root (i.e. http://127.0.0.1/) and expects the policy file. If the policy server is not there or the content of the policy file does not allow the communication, the original HTTP request is not performed.

Inheritance Hierarchy

System..::..Object
  Eneter.Messaging.MessagingSystems.HttpMessagingSystem..::..HttpPolicyServer

Version Information

.NET

Supported in: .NET 4.5, .NET 4.0, .NET 3.5

Compact Framework

Supported in: Compact Framework 3.5, Compact Framework 2.0

Mono

Supported in: Mono 2.6.4

See Also