Ejemplo n.º 1
0
 private OtherThreadExecutor.WorkerCommand <object, object> WriteToFirstAndSecond()
 {
     return(state =>
     {
         HTTP.Response post = _http.POST("db/data/transaction", quotedJson("{ 'statements': [ { 'statement': 'MATCH (n:Second) SET n.prop=1' } ] }"));
         _secondNodeLocked.Signal();
         _http.POST(post.location(), quotedJson("{ 'statements': [ { 'statement': 'MATCH (n:First) SET n.prop=1' } ] }"));
         return null;
     });
 }