public override bool WriteConfiguration(Chunk chunk) { Configuration.Broker.WriteConfiguration(this, chunk); // Write out file. if (this.collectionEnvironment.Count == 1) { IActor fileActor = this.collectionEnvironment.Actors[0]; // Create new file with it. Chunk actorChunk = Utility.WriteActor(fileActor); XmlDocument document = new XmlDocument(); document.RootChunk = actorChunk; document.Write(this.Url); return true; } return false; }
public bool WriteFile() { // Write out file. if (this.collectionEnvironment.Count == 1) { IActor fileActor = this.collectionEnvironment[0]; // Create new file with it. Chunk actorChunk = Utility.WriteActor(fileActor); XmlDocument document = new XmlDocument(); document.RootChunk = actorChunk; document.Write(this.Url); return true; } return true; }