#if !SILVERLIGHT && !MONOTOUCH && !XBOX using System.ServiceModel; using System.ServiceModel.Description; namespace ServiceStack.ServiceClient.Web { /// /// Generic Proxy for service calls. /// /// The service Contract public class GenericProxy : ClientBase where T : class { public GenericProxy() : base() { Initialize(); } public GenericProxy(string endpoint) : base(endpoint) { Initialize(); } public GenericProxy(ServiceEndpoint endpoint) : base(endpoint.Binding, endpoint.Address) { Initialize(); } public void Initialize() { //this.Endpoint.Behaviors.Add(new ServiceEndpointBehaviour()); } /// /// Returns the transparent proxy for the service call /// public T Proxy { get { return base.Channel; } } } } #endif