private static Stream GetBodyStream(string name) { var view = new EmbeddedFileResponse(typeof(DiagnosticsViewRenderer).Assembly, "Nancy.Diagnostics.Views", name); var stream = new MemoryStream(); view.Contents.Invoke(stream); stream.Position = 0; return stream; }
private static Stream GetBodyStream(string name) { var view = new EmbeddedFileResponse(typeof(DiagnosticsViewRenderer).Assembly, "Nancy.Diagnostics.Views", name); var stream = new MemoryStream(); view.Contents.Invoke(stream); stream.Position = 0; return(stream); }