NP.Lti13Platform.AssignmentGradeServices
1.0.0-preview.26
dotnet add package NP.Lti13Platform.AssignmentGradeServices --version 1.0.0-preview.26
NuGet\Install-Package NP.Lti13Platform.AssignmentGradeServices -Version 1.0.0-preview.26
<PackageReference Include="NP.Lti13Platform.AssignmentGradeServices" Version="1.0.0-preview.26" />
<PackageVersion Include="NP.Lti13Platform.AssignmentGradeServices" Version="1.0.0-preview.26" />
<PackageReference Include="NP.Lti13Platform.AssignmentGradeServices" />
paket add NP.Lti13Platform.AssignmentGradeServices --version 1.0.0-preview.26
#r "nuget: NP.Lti13Platform.AssignmentGradeServices, 1.0.0-preview.26"
#:package NP.Lti13Platform.AssignmentGradeServices@1.0.0-preview.26
#addin nuget:?package=NP.Lti13Platform.AssignmentGradeServices&version=1.0.0-preview.26&prerelease
#tool nuget:?package=NP.Lti13Platform.AssignmentGradeServices&version=1.0.0-preview.26&prerelease
NP.Lti13Platform.AssignmentGradeServices
The IMS Assignment and Grade Services spec defines a way that tools and platforms can communicate grades back and forth. This project provides an implementation of the spec.
Features
- Creates, retrieves, updates, and deletes line items
- Creates and retrieves grades
- Manages grade submissions and results
Getting Started
Add the nuget package to your project:
Add an implementation of the
IAssignmentGradeDataServiceinterface:
public class AssignmentGradeDataService: IAssignmentGradeDataService
{
...
}
- Add the required services.
builder.Services
.AddLti13PlatformCore<CoreDataService>()
.AddPlatformAssignmentGradeServices<AssignmentGradeDataService>();
- Setup the routing for the LTI 1.3 platform endpoints:
app.UseLti13PlatformAssignmentGradeServices();
IAssignmentGradeDataService
There is no default IAssignmentGradeDataService implementation to allow each project to store the data how they see fit.
The IAssignmentGradeDataService interface is used to manage the persistence of line items and grades in the platform.
All of the internal services are transient and therefore the data service may be added at any scope (Transient, Scoped, Singleton).
Defaults
Routing
Default routes are provided for all endpoints. Routes can be configured when calling UseLti13PlatformAssignmentGradeServices().
app.UseLti13PlatformAssignmentGradeServices(config => {
config.LineItemsUrl = "/lti13/{deploymentId}/{contextId}/lineItems"; // {deploymentId} and {contextId} are required
config.LineItemUrl = "/lti13/{deploymentId}/{contextId}/lineItems/{lineItemId}"; // {deploymentId}, {contextId}, and {lineItemId} are required
return config;
});
IAssignmentGradeConfigService
The IAssignmentGradeConfigService interface is used to get the configuration for the assignment and grade service. The config is used to tell tools where to submit and retrieve grades.
There is a default implementation of the IAssignmentGradeConfigService interface that uses configuration set up on app start.
It will be configured using the IOptions pattern and configuration.
The configuration path for the service is Lti13Platform:AssignmentGradeServices.
Examples:
{
"Lti13Platform": {
"AssignmentGradeServices": {
"ServiceAddress": "https://<mysite>"
}
}
}
OR
builder.Services.Configure<ServicesConfig>(x => { });
The Default implementation can be overridden by adding a new implementation of the IAssignmentGradeConfigService interface.
This may be useful if the service URL is dynamic or needs to be determined at runtime.
builder.Services
.AddLti13PlatformCore<CoreDataService>()
.AddPlatformAssignmentGradeServices<AssignmentGradeDataService>()
.WithAssignmentGradeConfigService<CustomConfigService>();
Configuration
ServiceAddress
The base URL used to tell tools where the service is located.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net9.0
- NP.Lti13Platform.Core (>= 1.0.0-preview.26)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on NP.Lti13Platform.AssignmentGradeServices:
| Package | Downloads |
|---|---|
|
NP.Lti13Platform
A platform implementation of the LTI 1.3 spec. Includes the Core, DeepLinking, Assignment and Grade Services, and Name and Role Provisioning Services specs. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0-preview.26 | 62 | 1/14/2026 |
| 1.0.0-preview.25 | 168 | 10/27/2025 |
| 1.0.0-preview.24 | 136 | 10/24/2025 |
| 1.0.0-preview.23 | 107 | 10/19/2025 |
| 1.0.0-preview.22 | 102 | 10/19/2025 |
| 1.0.0-preview.20 | 110 | 10/19/2025 |
| 1.0.0-preview.17 | 166 | 9/23/2025 |
| 1.0.0-preview.16 | 160 | 9/23/2025 |