Git Repository Public Repository

CPE_learningsite

URLs

Copy to Clipboard

This repository has no backups
This repository's network speed is throttled to 100KB/sec

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Web;
using CPE.App.Web.Elucidat;
using CPE.App.Web.Helpers;
using CPE.App.Web.Models;
using CPE.App.Web.Code;

namespace CPE.App.Api.Helpers
{
    public class ProjectConfigureHelper
    {
        //Configuring by doing a re-release, no longer a project configuration but naming convention already in place
        public static bool ProjectConfiguration(string projectCode, string releaseCode)
        {
            Utilities.LogWrapper.Info("[ProjectConfigureHelper][ProjectConfiguration] projectCode={0} releaseCode={1}", projectCode, releaseCode);

            string result = ElucidatMeetingConnection.CreateRelease(new ReleaseSettingModel
            {
                ProjectCode = projectCode,
                ReleaseMode = "online-private",
                ReleaseCode = releaseCode,
                XapiLrsEndpointUrl = ConfigurationManager.AppSettings["LrsEndpoint"],
                XapiLrsEndpointUsername = ConfigurationManager.AppSettings["LrsEndpointUsername"],
                XapiLrsEndpointPassword = ConfigurationManager.AppSettings["LrsEndpointPassword"],
                LearnerAccess = "restricted"
            });
            if (result.IndexOf("Release is being prepared") > -1)
            {
                return true;
            }
            return false;
        }
    }
}

Commits for CPE_learningsiteCPE/CPE.App/CPE.App.Api/Helpers/ProjectConfigureHelper.cs

Diff revisions: vs.
Revision Author Commited Message
4cd176 ... v.shishlov Fri 27 Aug, 2021 14:33:17 +0000

initial commit