Class XMLProvider
- Namespace
- Dynamicweb.Ecommerce.Feeds
- Assembly
- Dynamicweb.Ecommerce.dll
[AddInName("Dynamicweb.Ecommerce.Feeds.XMLProvider")]
[AddInLabel("XML feed provider")]
[AddInActive(true)]
public class XMLProvider : FeedProvider, IParameterOptions
- Inheritance
-
XMLProvider
- Implements
- Inherited Members
Properties
XSLTStylesheet
[AddInParameter("XSLT Stylesheet")]
[AddInParameterEditor(typeof(FileManagerEditor), "inputClass=inputControl;folder=/Files/Templates/Feeds;AllowedExtensions=xslt;lockedToFolder=true")]
public string? XSLTStylesheet { get; set; }
Property Value
Methods
GetContentType()
Gets the content type for the output
public override string GetContentType()
Returns
GetOutput(Feed, FeedContextConfiguration)
This method is used to get the output of the feed
public override string GetOutput(Feed feed, FeedContextConfiguration feedContextConfiguration)
Parameters
feedFeedThe feed which should be used as the source for the output
feedContextConfigurationFeedContextConfiguration
Returns
GetOutputAsync(Feed, FeedContextConfiguration, CancellationToken)
Async version of GetOutput. Backwards compatible: default implementation calls the sync GetOutput. Override this in new providers that can do real async work.
public override Task<string> GetOutputAsync(Feed feed, FeedContextConfiguration feedContextConfiguration, CancellationToken cancellationToken = default)
Parameters
feedFeedfeedContextConfigurationFeedContextConfigurationcancellationTokenCancellationToken