Class ProductExporter
The service for the exporting products.
Inheritance
System.Object
ProductExporter
Implements
Namespace: EPiServer.Commerce.ODP.Internal
Assembly: EPiServer.Commerce.ODP.dll
Version: 14.26.0Syntax
public class ProductExporter : Object, IProductExporter
Constructors
ProductExporter(IContentLoader, ODPJobOptions, ReferenceConverter, IRelationRepository, IUrlResolver, IServiceProvider, ILogger<ProductExporter>, LocalizationService, IHttpClientFactory, CatalogEntryChangeForODPDatabase)
Default constuctor
Declaration
public ProductExporter(IContentLoader contentLoader, ODPJobOptions options, ReferenceConverter referenceConverter, IRelationRepository relationRepository, IUrlResolver urlResolver, IServiceProvider serviceProvider, ILogger<ProductExporter> logger, LocalizationService localizationService, IHttpClientFactory httpClientFactory, CatalogEntryChangeForODPDatabase catalogEntryChangeDatabase)
Parameters
| Type | Name | Description |
|---|---|---|
| EPiServer.IContentLoader | contentLoader | The content loader |
| ODPJobOptions | options | The job options |
| ReferenceConverter | referenceConverter | The reference converter |
| IRelationRepository | relationRepository | The relation repository |
| EPiServer.Web.Routing.IUrlResolver | urlResolver | The url resolver |
| System.IServiceProvider | serviceProvider | The service provider |
| Microsoft.Extensions.Logging.ILogger<ProductExporter> | logger | The logger |
| EPiServer.Framework.Localization.LocalizationService | localizationService | The localization service |
| System.Net.Http.IHttpClientFactory | httpClientFactory | The HttpClient factory |
| CatalogEntryChangeForODPDatabase | catalogEntryChangeDatabase |
Methods
Export(Action<String>)
Export catalogs to ODP.
Declaration
public ExportResult Export(Action<string> uiNotifier)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Action<System.String> | uiNotifier | The ui notifier |
Returns
| Type | Description |
|---|---|
| ExportResult | The export result |
Export(DateTime, DateTime, Action<String>)
Export catalogs to ODP.
Declaration
public ExportResult Export(DateTime fromDate, DateTime toDate, Action<string> uiNotifier)
Parameters
| Type | Name | Description |
|---|---|---|
| System.DateTime | fromDate | The start date to export. |
| System.DateTime | toDate | The end date to export. |
| System.Action<System.String> | uiNotifier | The ui notifier |
Returns
| Type | Description |
|---|---|
| ExportResult |
SendDataToS3(IEnumerable<EntryContentBase>, MarketKey, CultureInfo, Action<String>)
Declaration
protected virtual void SendDataToS3(IEnumerable<EntryContentBase> entryContents, MarketKey marketKey, CultureInfo cultureInfo, Action<string> uiNotifier)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.IEnumerable<EntryContentBase> | entryContents | |
| MarketKey | marketKey | |
| System.Globalization.CultureInfo | cultureInfo | |
| System.Action<System.String> | uiNotifier |