public PasteHtmlEmailCreator(IExactTargetConfiguration config) : this(new DataExtensionClient(config), new TriggeredSendDefinitionClient(config), new EmailRequestClient(config), new DeliveryProfileClient(config)) { }
public static SoapClient Manufacture(IExactTargetConfiguration config) { var client = new SoapClient(config.SoapBinding ?? "ExactTarget.Soap", config.EndPoint); if (client.ClientCredentials == null) return null; client.ClientCredentials.UserName.UserName = config.ApiUserName; client.ClientCredentials.UserName.Password = config.ApiPassword; return client; }
public TriggeredEmailCreator(IExactTargetConfiguration config) { _triggeredSendDefinitionClient = new TriggeredSendDefinitionClient(config); _dataExtensionClient = new DataExtensionClient(config); _emailTemplateClient = new EmailTemplateClient(config); _emailRequestClient = new EmailRequestClient(config); _deliveryProfileClient = new DeliveryProfileClient(config); }
public PasteHtmlEmailCreator(IExactTargetConfiguration config) : this(new DataExtensionClient(config), new TriggeredSendDefinitionClient(config), new EmailRequestClient(config), new DeliveryProfileClient(config) ) { }
private static void GetClient(IExactTargetConfiguration config) { _SharedClent = new SharedRequestClient(config); triggeredSendDefinitionClient = new TriggeredSendDefinitionClient(config); _dataExtensionClient = new DataExtensionClient(config); _deliveryProfileClient = new DeliveryProfileClient(config); _Client = SoapClientFactory.Manufacture(config); }
public DynamicTriggeredEmailCreator(IExactTargetConfiguration config) { triggeredSendDefinitionClient = new TriggeredSendDefinitionClient(config); dataExtensionClient = new DataExtensionClient(config); emailTemplateClient = new EmailTemplateClient(config); emailRequestClient = new EmailRequestClient(config); deliveryProfileClient = new DeliveryProfileClient(config); }
public static SoapClient Manufacture(IExactTargetConfiguration config) { var client = new SoapClient(config.SoapBinding ?? "ExactTarget.Soap", config.EndPoint); if (client.ClientCredentials == null) { return(null); } client.ClientCredentials.UserName.UserName = config.ApiUserName; client.ClientCredentials.UserName.Password = config.ApiPassword; return(client); }
public DataExtensionClient(IExactTargetConfiguration config) { _config = config; _client = SoapClientFactory.Manufacture(config); _sharedCoreRequestClient = new SharedCoreRequestClient(config); }
public EmailTemplateClient(IExactTargetConfiguration config) { _client = SoapClientFactory.Manufacture(config); _config = config; }
public SharedCoreRequestClient(IExactTargetConfiguration config) { _client = SoapClientFactory.Manufacture(config); _config = config; }
public TriggeredEmailCreator(IExactTargetConfiguration config) { _config = config; }
public EmailTrigger(IExactTargetConfiguration config) { _config = config; }
public TriggeredSendDefinitionClient(IExactTargetConfiguration config) { _config = config; _client = SoapClientFactory.Manufacture(config); _sharedCoreRequestClient = new SharedRequestClient(config); }
public DeliveryProfileClient(IExactTargetConfiguration config) { _config = config; _client = SoapClientFactory.Manufacture(config); }
private static void SendMail(TriggeredSendDataModel triggerData, List <SubscriberDataModel> subscriberlist, IExactTargetConfiguration config) { var emailTrigger = new EmailTrigger(config); var lst = GetSubscriberList(subscriberlist, triggerData); emailTrigger.TriggerCustom(triggerData, lst); }
public TriggeredSendDefinitionClient(IExactTargetConfiguration config) { _config = config; _client = SoapClientFactory.Manufacture(config); _sharedCoreRequestClient = new SharedCoreRequestClient(config); }
public SharedRequestClient(IExactTargetConfiguration config) { _client = SoapClientFactory.Manufacture(config); _config = config; }