public virtual void cleanup() { robot = null; // Remove the file system and the manager robotFileSystemManager.cleanup(); robotFileSystemManager = null; }
public void StreamBig3() { string tempDir = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); Directory.CreateDirectory(tempDir); var m = new RobotFileSystemManager(null, 100, tempDir, tempDir); using (Stream dataFile = m.getDataFile("test.txt")) { dataFile.WriteByte(0xFF); dataFile.Position = 97; dataFile.WriteByte(0xFF); dataFile.Write(new byte[] { 0xFF, 0xFF, 0xFF }, 0, 3); } }
protected HostingRobotProxy(IRobotItem robotSpecification, IHostManager hostManager, IRobotPeer peer, RobotStatics statics) { this.peer = peer; this.statics = statics; this.hostManager = hostManager; this.robotSpecification = robotSpecification; outputSb = new StringBuilder(5000); output = TextWriter.Synchronized(new StringWriter(outputSb)); LoggerN.robotOut = output; robotFileSystemManager = new RobotFileSystemManager(this, (int)hostManager.getRobotFilesystemQuota(), robotSpecification.getWritableDirectory(), robotSpecification.getReadableDirectory()); }