Table of Contents

Class SendConfigurationInfoProviderExtensions

Namespace
CMS.EmailMarketing
Assembly
CMS.EmailMarketing.dll

Contains extension methods for SendConfigurationInfo's IInfoProvider<TInfo>.

public static class SendConfigurationInfoProviderExtensions
Inheritance
object
SendConfigurationInfoProviderExtensions

Methods

GetByEmailConfigurationId(IInfoProvider<SendConfigurationInfo>, int)

Gets an instance of SendConfigurationInfo by email configuration ID.

[Obsolete("Use CMS.EmailMarketing.SendConfigurationInfoProviderExtensions.GetByEmailConfigurationIdAsync(CMS.DataEngine.IInfoProvider<SendConfigurationInfo>, int, System.Threading.CancellationToken) instead.")]
[ObsoleteSince(29, 0)]
public static SendConfigurationInfo GetByEmailConfigurationId(this IInfoProvider<SendConfigurationInfo> infoProvider, int emailConfigurationId)

Parameters

infoProvider IInfoProvider<SendConfigurationInfo>
emailConfigurationId int

Returns

SendConfigurationInfo

Exceptions

ArgumentNullException

Thrown when infoProvider is null.

GetByEmailConfigurationIdAsync(IInfoProvider<SendConfigurationInfo>, int, CancellationToken)

Gets an instance of SendConfigurationInfo by email configuration ID.

public static Task<SendConfigurationInfo> GetByEmailConfigurationIdAsync(this IInfoProvider<SendConfigurationInfo> infoProvider, int emailConfigurationId, CancellationToken cancellationToken = default)

Parameters

infoProvider IInfoProvider<SendConfigurationInfo>
emailConfigurationId int
cancellationToken CancellationToken

Returns

Task<SendConfigurationInfo>

Exceptions

ArgumentNullException

Thrown when infoProvider is null.