DataWeb
Search Results for

    Show / Hide Table of Contents

    Class ModuleSubscriberImport

    Import module that processes Excel files containing newsletter subscriber data and upserts them via the subscriber service.

    Inheritance
    object
    Module
    ModuleImport
    ModuleSubscriberImport
    Inherited Members
    ModuleImport.ValidateImportDataAsync(Item, Dictionary<string, object>, CancellationToken)
    Module.section
    Module.navigationContext
    Module.serviceProvider
    Module.ValidateAsync(Item, Dictionary<string, object>, CancellationToken)
    Module.SaveAsync(Item, Dictionary<string, object>, CancellationToken)
    Module.IsCompletedAsync(Item, Section, CancellationToken)
    Module.CloneAsync(Item, Item, CancellationToken)
    Module.GetProvidedValues(Dictionary<string, object>)
    Module.GetSectionNotificationCountAsync(CancellationToken)
    Module.GetActionsAsync(CancellationToken)
    Module.ProcessActionAsync(ContextAction, IUser, List<string>, List<Form.ProvidedValue>, NavigationContext, CancellationToken)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: DataWeb.Structure.Modules
    Assembly: DataWeb.Core.dll
    Syntax
    public class ModuleSubscriberImport : ModuleImport

    Constructors

    ModuleSubscriberImport(Section, NavigationContext, IServiceProvider)

    Import module that processes Excel files containing newsletter subscriber data and upserts them via the subscriber service.

    Declaration
    public ModuleSubscriberImport(Section section, NavigationContext navigationContext, IServiceProvider serviceProvider)
    Parameters
    Type Name Description
    Section section
    NavigationContext navigationContext
    IServiceProvider serviceProvider

    Methods

    ImportAsync(Item, Dictionary<string, object>, CancellationToken)

    Imports data for a specific item.

    Declaration
    public override Task<List<ValidationError>> ImportAsync(Item item, Dictionary<string, object> moduleData, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    Item item

    The item for which the data is being imported.

    Dictionary<string, object> moduleData

    The data to import.

    CancellationToken cancellationToken

    Token to cancel the asynchronous operation.

    Returns
    Type Description
    Task<List<ValidationError>>

    A task that represents the asynchronous operation. The task result contains a list of validation errors, if any occurred during the import process.

    Overrides
    ModuleImport.ImportAsync(Item, Dictionary<string, object>, CancellationToken)
    In this article
    Back to top Generated by DocFX