コード例 #1
0
        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;
        }
コード例 #2
0
        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;
        }