Table of Contents

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

string

Methods

GetContentType()

Gets the content type for the output

public override string GetContentType()

Returns

string

GetOutput(Feed, FeedContextConfiguration)

This method is used to get the output of the feed

public override string GetOutput(Feed feed, FeedContextConfiguration feedContextConfiguration)

Parameters

feed Feed

The feed which should be used as the source for the output

feedContextConfiguration FeedContextConfiguration

Returns

string

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

feed Feed
feedContextConfiguration FeedContextConfiguration
cancellationToken CancellationToken

Returns

Task<string>
To top