Skip to content

Commit

Permalink
Release 1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
hhblaze committed Dec 9, 2020
1 parent e470582 commit 0378f0e
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 5 deletions.
5 changes: 5 additions & 0 deletions EntitySyncingClient.Net5/EntitySyncingClient.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions EntitySyncingClient.NetStandard20/EntitySyncingClient.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion EntitySyncingClientTester/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,15 @@ void InitSyncEngine()
urlSync = "/modules.http.GM_PersonalDevice/IDT_Actions",
entityTable = "Task1",
//entityContentTable - set up when necessary, DBreeze table for the Entity content differs from table with indexes
LimitationOfEntitesPerRound = 1000
});

SyncEngineClient2.AddEntity4Sync<Entity_Task>(new SyncEntity_Task_Client()
{
urlSync = "/modules.http.GM_PersonalDevice/IDT_Actions",
entityTable = "Task1"
entityTable = "Task1",
//entityContentTable - set up when necessary, DBreeze table for the Entity content differs from table with indexes
LimitationOfEntitesPerRound = 1000
});

}
Expand Down
5 changes: 5 additions & 0 deletions SPEntitySyncingClient/EntitySyncingBaseV1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ public virtual void BeforeCommit()

public EntitySyncingClient.Engine SyncingEngine = null;

/// <summary>
/// Default is 10000. Quantity of entites that must be synchronized per one SendToServer call.
/// </summary>
public int LimitationOfEntitesPerRound = 10000;

/// <summary>
/// Chooses between entityContentTable and entityTable
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion SPEntitySyncingClient/SyncStrategy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public abstract class SyncStrategy<T>
{
protected long _newLocalSyncTimeStamp;

protected const int LimitationOfEntitesPerRound = 100; // can send no more than this number of entities to server in one request


public SyncStrategy()
{
Expand Down
2 changes: 1 addition & 1 deletion SPEntitySyncingClient/SyncStrategyV1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public override List<SyncOperation> GetSyncOperations(DBreeze.Transactions.Trans
new byte[] { SyncLog }.ConcatMany(long.MaxValue.To_8_bytes_array_BigEndian(), long.MaxValue.To_8_bytes_array_BigEndian()),
true))
{
if (changedEntities.Count > LimitationOfEntitesPerRound)
if (changedEntities.Count > _entitySync.LimitationOfEntitesPerRound)
{
repeatSync = true;
break;
Expand Down
2 changes: 1 addition & 1 deletion _Deployment/EntitySyncing.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package >
<metadata>
<id>EntitySyncingServer</id>
<version>1.006.2020.1209</version>
<version>1.007.2020.1209</version>
<title>EntitySyncingServer</title>
<authors>[email protected]</authors>
<owners>https://tiesky.com</owners>
Expand Down
Binary file removed _Deployment/EntitySyncingClient.1.6.2020.1209.nupkg
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion _Deployment/EntitySyncingClient.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package >
<metadata>
<id>EntitySyncingClient</id>
<version>1.006.2020.1209</version>
<version>1.007.2020.1209</version>
<title>EntitySyncingClient</title>
<authors>[email protected]</authors>
<owners>https://tiesky.com</owners>
Expand Down
Binary file not shown.

0 comments on commit 0378f0e

Please sign in to comment.