Metalama 1.0 / / Metalama Documentation / Aspect API / Metalama.​Framework.​Advising / IAdvice­Factory / With­Template­Provider

Method WithTemplateProvider

WithTemplateProvider(ITemplateProvider)

Returns a copy of the current IAdviceFactory that will a specified object to find factory methods.

Declaration
IAdviceFactory WithTemplateProvider(ITemplateProvider templateProvider)
Parameters
Type Name Description
ITemplateProvider templateProvider

Instance of an object with template members.

Returns
Type Description
IAdviceFactory

An IAdviceFactory.