コード例 #1
0
        public RestClientObjectService(IServiceClientConfiguration serviceClientConfiguration, IRestClient restClient, IJsonSerializer serializer)
        {
            this.serviceClientConfiguration = serviceClientConfiguration;
            this.restClient = restClient;
            this.serializer = serializer;

            applicationModel = new Lazy <ApplicationModel>(FetchApplicationModel);
        }
コード例 #2
0
        public IClientContext AsServiceClient(IServiceClientConfiguration serviceClientConfiguration)
        {
            var service = InterceptIfConfigured(new RestClientObjectService(serviceClientConfiguration, restClient, serializer));

            return(new DefaultClientContext(service, new Rapplication(service)));
        }
コード例 #3
0
        //private delegate object ProcessRequestMethod();

        public RestServiceClient(IServiceClientConfiguration configuration)
        {
            Guard.ArgumentIsNotNull(configuration, "configuration");

            _configuration = configuration;
        }