Bitcoin Echo Test seems to work all the way

This commit is contained in:
Rick Falkvinge
2017-11-23 05:20:05 +01:00
parent 24d70c4c77
commit c7efc79c62
14 changed files with 66 additions and 75 deletions
+3 -2
View File
@@ -47,7 +47,7 @@ namespace Swarmops.Logic.Support
return;
}
MethodInfo methodFromXml = serviceClassType.GetMethod("FromXml", BindingFlags.FlattenHierarchy | BindingFlags.Static);
MethodInfo methodFromXml = serviceClassType.GetMethod("FromXml", BindingFlags.FlattenHierarchy | BindingFlags.Static | BindingFlags.Public);
if (methodFromXml == null)
{
@@ -56,6 +56,7 @@ namespace Swarmops.Logic.Support
}
IBackendServiceOrderBase order = (IBackendServiceOrderBase) methodFromXml.Invoke(null, new object[] { this.OrderXml });
order.ServiceOrderIdentity = this.Identity; // not part of serialization
// Mark as started
@@ -80,7 +81,7 @@ namespace Swarmops.Logic.Support
{
order.Close();
}
catch (ConcurrencyException)
catch (DatabaseConcurrencyException)
{
// Ignore if we try to close it twice in this particular failure scenario
}