forked from Mimetis/Dotmim.Sync
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 Mimetis#220 from Mimetis/Mimetis-Core30-Compatibility
Fix .Net Core30 Compatibility issues
- Loading branch information
Showing
51 changed files
with
496 additions
and
621 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
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
Projects/Dotmim.Sync.Core/Interceptors/SerializationArgs.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 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Data.Common; | ||
using System.Text; | ||
|
||
namespace Dotmim.Sync | ||
{ | ||
/// <summary> | ||
/// Raise before serialize a change set to get a byte array | ||
/// </summary> | ||
public class SerializingSetArgs : ProgressArgs | ||
{ | ||
public SerializingSetArgs(SyncContext context, ContainerSet set, DbConnection connection, DbTransaction transaction) | ||
: base(context, connection, transaction) | ||
{ | ||
this.Set = set; | ||
} | ||
|
||
/// <summary> | ||
/// Gets the data that will be serialized on disk | ||
/// </summary> | ||
public byte[] Data { get; set; } | ||
|
||
/// <summary> | ||
/// Set to serialize | ||
/// </summary> | ||
public ContainerSet Set { get; } | ||
} | ||
|
||
|
||
/// <summary> | ||
/// Raise just after loading a binary change set from disk, just before calling the deserializer | ||
/// </summary> | ||
public class DeserializingSetArgs : SerializingSetArgs | ||
{ | ||
public DeserializingSetArgs(SyncContext context, ContainerSet set, DbConnection connection, DbTransaction transaction) : base(context, set, connection, transaction) | ||
{ | ||
} | ||
} | ||
} |
Oops, something went wrong.