Пример #1
0
        public ODataClient(ODataBatch batch)
        {
            _urlBase = batch.RequestBuilder.UrlBase;
            _schema = Client.Schema.Get(_urlBase);

            _requestBuilder = batch.RequestBuilder;
            _requestRunner = batch.RequestRunner;
        }
Пример #2
0
        public ODataClient(string urlBase)
        {
            _urlBase = urlBase;
            _schema = Client.Schema.Get(urlBase);

            _requestBuilder = new CommandRequestBuilder(_urlBase);
            _requestRunner = new CommandRequestRunner();
        }
        public ODataClient(ODataBatch batch)
        {
            _settings = batch.Settings;
            _schema = Client.Schema.Get(_settings.UrlBase, _settings.Credentials);

            _requestBuilder = batch.RequestBuilder;
            _requestRunner = batch.RequestRunner;
        }
        public ODataClient(ODataClientSettings settings)
        {
            _settings = settings;
            _schema = Client.Schema.Get(_settings.UrlBase, _settings.Credentials);

            _requestBuilder = new CommandRequestBuilder(_settings.UrlBase, _settings.Credentials);
            _requestRunner = new CommandRequestRunner(_settings);
            _requestRunner.BeforeRequest = _settings.BeforeRequest;
            _requestRunner.AfterResponse = _settings.AfterResponse;
        }
 public BatchRequestRunner(RequestBuilder requestBuilder)
 {
     _requestBuilder = requestBuilder;
 }
Пример #6
0
 public BatchRequestRunner(RequestBuilder requestBuilder)
 {
     _requestBuilder = requestBuilder;
 }