C# (CSharp) Bloom.Api SimulatedPageFile - 1 examples found. These are the top rated real world C# (CSharp) examples of Bloom.Api.SimulatedPageFile extracted from open source projects. You can rate examples to help us improve the quality of examples.
A SimulatedPageFile is used in connection with simulating a current-page file that needs to (seem to) be in the book folder so local hrefs work. We don't actually put files there (see EnhancedImageServer.MakeSimulatedPageFileInBookFolder for more), but rather store some data in the our file server object. The particular purpose of the SimulatedPageFile is to manage the lifetime for which the simulated page is kept in the server. It can be passed to the Browser which will Dispose() it when no longer needed. (In that regard, it is used in rather the same way as a TempFile object is used to make sure that a temp file gets deleted when the Browser no longer needs it.)