SOLOTech.MaxCore 1.2.1
MAX Core API
This package allows to get Object Data (parts and assemblies) and Settings from MAX Core.
Usage
Install this nuget package and then add it to the application using Dependency Injection configuration:
builder.Services.AddMaxCore();
If the MAX Core backend runs in an endpoint different of http://localhost:5000, you have to add a setting to your appsettings.json file with the name "CoreBackendURL" and the endpoint address
Services
MonitorService
Monitor service allows to send monitor messages to support team via slack. To use it, just inject IMonitorService using dependency injection.
Example:
await _monitorService.PublishAlertAsync("INSP", "ATENTION: The server is running out of storage space")
Note: the first parameter must be the module code as specified in the modules table of MAX Core.
Settings Service
Settings service allows to read and write global core settings (stored in the database).
var clientSetting = await _settingsService.GetSettingAsync("ClientName");
var clientName = clientSetting.Value;
ObjectDataService
The Object Data service provides methods to fetch object data (parts, assemblies, providers, etc) from the core database. Check the methods documentation to get more information about how to use them.
No packages depend on SOLOTech.MaxCore.
.NET 8.0
- Microsoft.Extensions.Configuration (>= 8.0.0)
- Microsoft.Extensions.Http (>= 8.0.0)
- Microsoft.Extensions.Logging (>= 8.0.0)
- Newtonsoft.Json (>= 13.0.3)