Show / Hide Table of Contents

Class ProductImporter

Implements the import functionality in NetServer

Inheritance
object
ProductImporter
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: SuperOffice.CRM.Import
Assembly: SoDataBase.BusinessLogic.dll
Syntax
public class ProductImporter

Constructors

ProductImporter()

Default constructor

Declaration
public ProductImporter()

Methods

DoImportAsync(ImportItem[], string[], bool, string, int, StringDictionary, CancellationToken)

Import function

Declaration
public Task<(ImportItem[], int, int, int)> DoImportAsync(ImportItem[] rows, string[] columnDefs, bool saveForReal, string culture, int pricelistId, StringDictionary productImages, CancellationToken cancellationToken = default)
Parameters
Type Name Description
ImportItem[] rows
string[] columnDefs
bool saveForReal
string culture
int pricelistId
StringDictionary productImages
CancellationToken cancellationToken
Returns
Type Description
Task<(ImportItem[], int, int, int)>

ImportProductImagesAsync(StringDictionary, ProgressCallbackAsync, CancellationToken)

Implements the import functionality in NetServer

Declaration
public Task ImportProductImagesAsync(StringDictionary productImages, ProgressCallbackAsync progressCallbackAsync, CancellationToken cancellationToken = default)
Parameters
Type Name Description
StringDictionary productImages
ProgressCallbackAsync progressCallbackAsync
CancellationToken cancellationToken
Returns
Type Description
Task

WriteStats(string)

Writes out statistics - time and memory

Declaration
public void WriteStats(string message)
Parameters
Type Name Description
string message

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
ObjectExtensions.AssignByReflection<T>(T, T)
ObjectExtensions.GraphCopy<T>(T)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top