コード例 #1
0
        public void Initialize(IEmailImporter importer, IShowFeedback feedbackUi)
        {
            // Depending on what we're adding addresses to, we need to call different controllers
            string apiUrl = NewsLetterConfiguration.GetModuleBaseDir() + "/api/recipients/";
            int    id     = 0;

            if (importer is Job)
            {
                apiUrl = apiUrl + "AddRecipientsToJobFromEPiServerGroupname";
                id     = ((Job)importer).Id;
            }
            else
            {
                apiUrl = apiUrl + "AddRecipientsToListFromEPiServerGroupname";
                id     = ((RecipientList)importer).Id;
            }
            apiUrl = apiUrl + "?id=" + id.ToString();

            ApiUrl = apiUrl;
        }
コード例 #2
0
        public void Initialize(IEmailImporter importer, IShowFeedback feedbackUi)
        {
            // Depending on what we're adding addresses to, we need to call different controllers
            string apiUrl = NewsLetterConfiguration.GetModuleBaseDir() + "/api/recipients/";
            int id = 0;

            if (importer is Job)
            {
                apiUrl = apiUrl + "AddRecipientsToJobFromEPiServerGroupname";
                id = ((Job) importer).Id;
            }
            else
            {
                apiUrl = apiUrl + "AddRecipientsToListFromEPiServerGroupname";
                id = ((RecipientList)importer).Id;
            }
            apiUrl = apiUrl + "?id=" + id.ToString();

            ApiUrl = apiUrl;
        }
コード例 #3
0
        public void Initialize(IEmailImporter importer, IShowFeedback feedbackUi)
        {
            // Depending on what we're adding addresses to, we need to call different controllers
            string apiUrl = NewsLetterConfiguration.GetModuleBaseDir() + "/api/recipients/";
            int    id     = 0;

            if (importer is Job)
            {
                apiUrl = apiUrl + "AddRecipientsToJobFromList";
                id     = ((Job)importer).Id;
                apiUrl = apiUrl + "?jobId=" + id.ToString();
            }
            else
            {
                // We're adding from a list to another listg
                apiUrl = apiUrl + "AddRecipientsToListFromList";
                id     = ((RecipientList)importer).Id;
                apiUrl = apiUrl + "?destinationListId=" + id.ToString();
            }

            ApiUrl = apiUrl;
        }
コード例 #4
0
        public void Initialize(IEmailImporter importer, IShowFeedback feedbackUi)
        {
            // Depending on what we're adding addresses to, we need to call different controllers
            string apiUrl = NewsLetterConfiguration.GetModuleBaseDir() + "/api/recipients/";
            int id = 0;

            if (importer is Job)
            {
                apiUrl = apiUrl + "AddRecipientsToJobFromList";
                id = ((Job)importer).Id;
                apiUrl = apiUrl + "?jobId=" + id.ToString();
            }
            else
            {
                // We're adding from a list to another listg
                apiUrl = apiUrl + "AddRecipientsToListFromList";
                id = ((RecipientList)importer).Id;
                apiUrl = apiUrl + "?destinationListId=" + id.ToString();
            }

            ApiUrl = apiUrl;
        }
コード例 #5
0
 public void Initialize(IEmailImporter importer, IShowFeedback feedbackUi)
 {
     _job = importer;
     _jobUi = feedbackUi;
 }
コード例 #6
0
 public void Initialize(IEmailImporter importer, IShowFeedback feedbackUi)
 {
     _importer = importer;
     _job = (Job) importer;
     _feedbackCtrl = feedbackUi;
 }
コード例 #7
0
 public void Initialize(IEmailImporter importer, IShowFeedback feedbackUi)
 {
     _job   = (Job)importer;
     _jobUi = feedbackUi;
 }
コード例 #8
0
 public void Initialize(IEmailImporter importer, IShowFeedback feedbackUi)
 {
     _importer     = importer;
     _feedbackCtrl = feedbackUi;
 }