static public void Process(RemoteActionRepository rar, Node n, Stream st) { Response r = Serializer.Deserialize <Response>(st); Guid id = Serializer.Deserialize <Guid>(st); RemoteAction ra = rar.Get(id); ra.FollowUp(n, st, r); rar.Remove(id); }
public void Respond(RemoteActionRepository rar, IManualLock l_, Action <Response, Stream> followUp_) { l = l_; followUp = followUp_; if (l != null && !l.Locked) { throw new Exception("Cannot remote unlocked object"); } rar.AddAction(this); }