-
-
Notifications
You must be signed in to change notification settings - Fork 561
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 #784 from skadefro/master
push 1.4.57.3
- Loading branch information
Showing
43 changed files
with
1,170 additions
and
514 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using OpenRPA.Input; | ||
using OpenRPA.Interfaces.entity; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.ComponentModel; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace OpenRPA.Interfaces | ||
{ | ||
public interface IStorage : IDisposable | ||
{ | ||
string Name { get; set; } | ||
Task Initialize(); | ||
Task<T[]> FindAll<T>() where T : apibase; | ||
Task<T> FindById<T>(string id) where T : apibase; | ||
Task<T> Insert<T>(T item) where T : apibase; | ||
Task<T> Update<T>(T item) where T : apibase; | ||
Task Delete<T>(string id) where T : apibase; | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> | ||
<Fragment> | ||
|
||
<ComponentGroup Id="StorageFSComponents"> | ||
<Component Id='StorageFSComponent' Guid='{079E3990-1D1F-4381-B023-B3DA6E64042B}' Win64='yes' Directory="INSTALLDIR"> | ||
<File Id="OpenRPA.Storage.Filesystem.dll" Source="!(wix.ScriptSource)\OpenRPA.Storage.Filesystem.dll" /> | ||
<File Id="OpenRPA.Storage.Filesystem.pdb" Source="!(wix.ScriptSource)\OpenRPA.Storage.Filesystem.pdb" /> | ||
</Component> | ||
</ComponentGroup> | ||
|
||
</Fragment> | ||
</Wix> |
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,13 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> | ||
<Fragment> | ||
|
||
<ComponentGroup Id="StorageLiteDbComponents"> | ||
<Component Id='StorageLiteDbComponent' Guid='{D0AC728D-DFBC-4734-AA22-230ECB94449F}' Win64='yes' Directory="INSTALLDIR"> | ||
<File Id="OpenRPA.Storage.LiteDB.dll" Source="!(wix.ScriptSource)\OpenRPA.Storage.LiteDB.dll" /> | ||
<File Id="OpenRPA.Storage.LiteDB.pdb" Source="!(wix.ScriptSource)\OpenRPA.Storage.LiteDB.pdb" /> | ||
</Component> | ||
</ComponentGroup> | ||
|
||
</Fragment> | ||
</Wix> |
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,53 @@ | ||
using Newtonsoft.Json.Serialization; | ||
using Newtonsoft.Json; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Reflection; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace OpenRPA.Storage.Filesystem | ||
{ | ||
public class DoNotIgnoreResolver : DefaultContractResolver | ||
{ | ||
protected override JsonProperty CreateProperty(MemberInfo member, MemberSerialization memberSerialization) | ||
{ | ||
var property = base.CreateProperty(member, memberSerialization); | ||
if (property.PropertyName == "isLocalOnly") | ||
{ | ||
property.Ignored = false; | ||
} | ||
if (property.PropertyName == "isDirty") | ||
{ | ||
property.Ignored = false; | ||
} | ||
if (property.PropertyName == "isDeleted") | ||
{ | ||
property.Ignored = false; | ||
} | ||
if (property.PropertyName == "current_version") | ||
{ | ||
property.Ignored = false; | ||
} | ||
if (property.PropertyName == "RelativeFilename") | ||
{ | ||
property.Ignored = false; | ||
} | ||
if (property.PropertyName == "State") | ||
{ | ||
property.Ignored = false; | ||
} | ||
if (property.PropertyName == "IsExpanded") | ||
{ | ||
property.Ignored = false; | ||
} | ||
if (property.PropertyName == "IsSelected") | ||
{ | ||
property.Ignored = false; | ||
} | ||
return property; | ||
} | ||
} | ||
|
||
} |
Oops, something went wrong.