public RestClientObjectService(IServiceClientConfiguration serviceClientConfiguration, IRestClient restClient, IJsonSerializer serializer) { this.serviceClientConfiguration = serviceClientConfiguration; this.restClient = restClient; this.serializer = serializer; applicationModel = new Lazy <ApplicationModel>(FetchApplicationModel); }
public IClientContext AsServiceClient(IServiceClientConfiguration serviceClientConfiguration) { var service = InterceptIfConfigured(new RestClientObjectService(serviceClientConfiguration, restClient, serializer)); return(new DefaultClientContext(service, new Rapplication(service))); }
//private delegate object ProcessRequestMethod(); public RestServiceClient(IServiceClientConfiguration configuration) { Guard.ArgumentIsNotNull(configuration, "configuration"); _configuration = configuration; }