Debugging worker files
This commit is contained in:
parent
e91a574b2c
commit
f0cbc0a53a
|
@ -1,5 +1,4 @@
|
||||||
using Logging;
|
using Logging;
|
||||||
using Nethereum.Contracts;
|
|
||||||
|
|
||||||
namespace AutoClient.Modes.FolderStore
|
namespace AutoClient.Modes.FolderStore
|
||||||
{
|
{
|
||||||
|
@ -22,6 +21,7 @@ namespace AutoClient.Modes.FolderStore
|
||||||
this.instance = instance;
|
this.instance = instance;
|
||||||
this.purchaseInfo = purchaseInfo;
|
this.purchaseInfo = purchaseInfo;
|
||||||
sourceFilename = filename.File;
|
sourceFilename = filename.File;
|
||||||
|
if (sourceFilename.ToLowerInvariant().EndsWith(".json")) throw new Exception("Not an era file.");
|
||||||
this.onFileUploaded = onFileUploaded;
|
this.onFileUploaded = onFileUploaded;
|
||||||
this.onNewPurchase = onNewPurchase;
|
this.onNewPurchase = onNewPurchase;
|
||||||
codex = new CodexNode(app, instance);
|
codex = new CodexNode(app, instance);
|
||||||
|
|
|
@ -12,6 +12,8 @@ namespace AutoClient.Modes.FolderStore
|
||||||
Folder = folder;
|
Folder = folder;
|
||||||
FilePath = filePath;
|
FilePath = filePath;
|
||||||
LoadState();
|
LoadState();
|
||||||
|
|
||||||
|
app.Log.Debug("Deserialized state: " + JsonConvert.SerializeObject(State));
|
||||||
}
|
}
|
||||||
|
|
||||||
private void LoadState()
|
private void LoadState()
|
||||||
|
|
Loading…
Reference in New Issue