Add POCO Confidential for deserialization.
Add mail merge demo video and template files. Move pre-build package to Prebuilt folder.
This commit is contained in:
Родитель
e2c76cb79b
Коммит
d755cfebea
|
@ -9,7 +9,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AzureGraderConsoleRunner",
|
|||
EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{FF222F7C-1A34-480F-883B-86E14E45977F}"
|
||||
ProjectSection(SolutionItems) = preProject
|
||||
AzureAutomaticGradingEngineFunctionApp.zip = AzureAutomaticGradingEngineFunctionApp.zip
|
||||
azuredeploy.json = azuredeploy.json
|
||||
README.md = README.md
|
||||
EndProjectSection
|
||||
|
|
|
@ -17,6 +17,19 @@ namespace AzureGraderFunctionApp
|
|||
public static class StudentRegistrationFunction
|
||||
{
|
||||
|
||||
class Confidential
|
||||
{
|
||||
public string clientId;
|
||||
public string clientSecret;
|
||||
public string subscriptionId;
|
||||
public string tenantId;
|
||||
public string activeDirectoryEndpointUrl;
|
||||
public string resourceManagerEndpointUrl;
|
||||
public string activeDirectoryGraphResourceId;
|
||||
public string sqlManagementEndpointUrl;
|
||||
public string galleryEndpointUrl;
|
||||
public string managementEndpointUrl;
|
||||
}
|
||||
|
||||
[FunctionName("StudentRegistrationFunction")]
|
||||
public static async Task<IActionResult> Run(
|
||||
|
@ -105,8 +118,8 @@ namespace AzureGraderFunctionApp
|
|||
CloudTable credentialsTable = tblclient.GetTableReference("credentials");
|
||||
CloudTable subscriptionTable = tblclient.GetTableReference("subscriptions");
|
||||
|
||||
var credentialObject = Newtonsoft.Json.JsonConvert.DeserializeObject<dynamic>(credentials);
|
||||
string subscriptionId = credentialObject.subscriptionId;
|
||||
var credential = Newtonsoft.Json.JsonConvert.DeserializeObject<Confidential>(credentials);
|
||||
string subscriptionId = credential.subscriptionId;
|
||||
|
||||
TableResult result = await subscriptionTable.ExecuteAsync(TableOperation.Retrieve(project, subscriptionId, new List<string>() { "Email" }));
|
||||
|
||||
|
|
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
|
@ -53,8 +53,11 @@ Properties - "GraderUrl": The grader HTTP Url
|
|||
![Assignment](./images/AssignmentTableRecord.png)
|
||||
|
||||
# Email Registeration Link to your student.
|
||||
[![IMAGE ALT TEXT](http://img.youtube.com/vi/CXc7fx6nNJk/0.jpg)](https://youtu.be/CXc7fx6nNJk "How to mail merge registration information to your students?")
|
||||
|
||||
To prevent typo for assignment name and and email address, use mail merge to send the link to students.
|
||||
To prevent the typo of assignment name and email address, please use mail merge to send the link to students.
|
||||
|
||||
You can get the sample mail merge template /MailMerge
|
||||
|
||||
https://somethingunique.azurewebsites.net/api/StudentRegistrationFunction?project=it114115&email=cywong@vtc.edu.hk
|
||||
|
||||
|
|
|
@ -58,7 +58,7 @@
|
|||
},
|
||||
{
|
||||
"name": "WEBSITE_RUN_FROM_PACKAGE",
|
||||
"value": "https://github.com/microsoft/AzureAutomaticGradingEngine/raw/master/AzureAutomaticGradingEngineFunctionApp.zip"
|
||||
"value": "https://github.com/microsoft/AzureAutomaticGradingEngine/raw/master/Prebuilt/AzureAutomaticGradingEngineFunctionApp.zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
Загрузка…
Ссылка в новой задаче