This repository has been archived by the owner on Feb 29, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 295
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #719 from shrishrirang/dev-pagesize-pr
Add support to configure page size during a pull operation
- Loading branch information
Showing
13 changed files
with
307 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
sdk/Managed/src/Microsoft.WindowsAzure.MobileServices/Table/Sync/PullOptions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// ---------------------------------------------------------------------------- | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// ---------------------------------------------------------------------------- | ||
|
||
using System; | ||
using System.Globalization; | ||
|
||
namespace Microsoft.WindowsAzure.MobileServices.Sync | ||
{ | ||
public class PullOptions | ||
{ | ||
private int _maxPageSize; | ||
|
||
/// <summary> | ||
/// Constructor | ||
/// </summary> | ||
public PullOptions() | ||
{ | ||
MaxPageSize = 50; | ||
} | ||
|
||
/// <summary> | ||
/// Maximum allowed size of a page while performing a pull operation. | ||
/// </summary> | ||
public int MaxPageSize | ||
{ | ||
get { return _maxPageSize; } | ||
set | ||
{ | ||
if (value <= 0) | ||
{ | ||
throw new ArgumentException(string.Format(CultureInfo.InvariantCulture, | ||
"Tried to set MaxPageSize to invalid value {0}", value)); | ||
} | ||
|
||
_maxPageSize = value; | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.