예제 #1
0
        private async Task CreatePullStrategy()
        {
            bool isIncrementalSync = !String.IsNullOrEmpty(this.QueryId);

            if (isIncrementalSync)
            {
                this.strategy = new IncrementalPullStrategy(this.Table, this.Query, this.QueryId, this.Settings, this.cursor, this.options, this.pullOptions);
            }
            else
            {
                this.strategy = new PullStrategy(this.Query, this.cursor, this.options, this.pullOptions);
            }
            await this.strategy.InitializeAsync();
        }
 private async Task CreatePullStrategy()
 {
     bool isIncrementalSync = !String.IsNullOrEmpty(this.QueryId);
     if (isIncrementalSync)
     {
         this.strategy = new IncrementalPullStrategy(this.Table, this.Query, this.QueryId, this.Settings, this.cursor, this.options);
     }
     else
     {
         this.strategy = new PullStrategy(this.Query, this.cursor, this.options);
     }
     await this.strategy.InitializeAsync();
 }