IPageExecutionListenerFeature Interface¶
Summary¶
Specifies the contracts for a HTTP feature that provides the context to instrument a web page.
Methods¶
-
DecorateWriter
(System.IO.TextWriter)¶ Decorates the [System.IO.TextWriter]() used by web page instances to write the result to.
Arguments: - writer (System.IO.TextWriter) – The output [System.IO.TextWriter]() for the web page.
Return type: System.IO.TextWriter
Returns: A [System.IO.TextWriter]() that wraps <paramref name=”writer” />.
TextWriter DecorateWriter(TextWriter writer)
-
GetContext
(System.String, System.IO.TextWriter)¶ Creates a [Microsoft.AspNet.PageExecutionInstrumentation.IPageExecutionContext](Microsoft.AspNet.PageExecutionInstrumentation.IPageExecutionContext.yml) for the specified <paramref name=”sourceFilePath” />.
Arguments: - sourceFilePath (System.String) – The path of the page.
- writer (System.IO.TextWriter) – The [System.IO.TextWriter]() obtained from [Microsoft.AspNet.PageExecutionInstrumentation.IPageExecutionListenerFeature.DecorateWriter(System.IO.TextWriter)](Microsoft.AspNet.PageExecutionInstrumentation.IPageExecutionListenerFeature.yml).
Return type: Microsoft.AspNet.PageExecutionInstrumentation.IPageExecutionContext
Returns: The [Microsoft.AspNet.PageExecutionInstrumentation.IPageExecutionContext](Microsoft.AspNet.PageExecutionInstrumentation.IPageExecutionContext.yml).
IPageExecutionContext GetContext(string sourceFilePath, TextWriter writer)
-