C# Class NRConfigManager.Rendering.Renderer

Renders or manipulates New Relic-compatible XML configuration files for custom instrumentation.
Show file Open project: Pablissimo/nrconfig

Public Methods

Method Description
LoadRenderedFromStream ( Stream stream ) : Extension

Generates an in-memory representation of a New Relic custom instrumentation XML file from the specified stream.

Render ( IEnumerable targets ) : Extension

Creates an XML-renderable Extension object that represents the instrumentation settings specified by the supplied list of targets.

RenderToStream ( Extension extension, Stream stream ) : void

Renders a supplied Extension object to a specified stream as a New Relic-compatible XML document.

RenderToStream ( IEnumerable targets, Stream stream ) : void

Renders a supplied collection of instrumentation targets to a specified stream as a New Relic-compatible XML document.

Private Methods

Method Description
GetFriendlyTypeName ( ITypeDetails t ) : string
GetGenericParameterTypeName ( ITypeDetails parameterType, IEnumerable orderedTypeContext ) : string
GetMatchFromType ( ITypeDetails t ) : Match
GetMatcherFromTarget ( InstrumentationTarget target ) : ExactMethodMatcher

Method Details

LoadRenderedFromStream() public static method

Generates an in-memory representation of a New Relic custom instrumentation XML file from the specified stream.
public static LoadRenderedFromStream ( Stream stream ) : Extension
stream Stream The stream from which the document should be loaded.
return Extension

Render() public static method

Creates an XML-renderable Extension object that represents the instrumentation settings specified by the supplied list of targets.
public static Render ( IEnumerable targets ) : Extension
targets IEnumerable The set of targets to be instrumented.
return Extension

RenderToStream() public static method

Renders a supplied Extension object to a specified stream as a New Relic-compatible XML document.
public static RenderToStream ( Extension extension, Stream stream ) : void
extension Extension The Extension object to be rendered.
stream Stream The stream to which the XML document should be rendered.
return void

RenderToStream() public static method

Renders a supplied collection of instrumentation targets to a specified stream as a New Relic-compatible XML document.
public static RenderToStream ( IEnumerable targets, Stream stream ) : void
targets IEnumerable The set of targets to be instrumented.
stream Stream The stream to which the XML document should be rendered.
return void