#if !(SL5 || __IOS__ || XBOX || ANDROID || PCL) using System.ServiceModel; using System.ServiceModel.Description; namespace ServiceStack { /// /// Generic Proxy for service calls. /// /// The service Contract public class GenericProxy : ClientBase where T : class { public GenericProxy() { 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