Open sandboxFocus

Method WithTemplateProvider

WithTemplateProvider(TemplateProvider)

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

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

A TemplateProvider.

Returns
Type Description
IAdviceFactory

An IAdviceFactory.

WithTemplateProvider(ITemplateProvider)

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

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

An ITemplateProvider.

Returns
Type Description
IAdviceFactory

An IAdviceFactory.