MPOSAirDataCleanUpSample 0.5.0
dotnet add package MPOSAirDataCleanUpSample --version 0.5.0
NuGet\Install-Package MPOSAirDataCleanUpSample -Version 0.5.0
<PackageReference Include="MPOSAirDataCleanUpSample" Version="0.5.0" />
paket add MPOSAirDataCleanUpSample --version 0.5.0
#r "nuget: MPOSAirDataCleanUpSample, 0.5.0"
// Install MPOSAirDataCleanUpSample as a Cake Addin
#addin nuget:?package=MPOSAirDataCleanUpSample&version=0.5.0
// Install MPOSAirDataCleanUpSample as a Cake Tool
#tool nuget:?package=MPOSAirDataCleanUpSample&version=0.5.0
Data clean up-project for MPOS Air.
To be used as a NuGet once development is finished for v1.0.0.
To add the functionality, add the following line to your configured services:
serviceCollection.AddDataCleanUpServices();
This call adds the CleanUpService functionality as well as the internal logging used. The logger output is being shown into the Console.
The following way of usage is enforced:
app.ConfigureCleanUpService(opts =>
{
opts.WithConnectionString("string")
.WithRules("cleanUpRuleSet.json")
.WithPeriod(CleanUpPeriod.Daily)
.InitializeCleanUp();
});
Current functionality implies that a PostgreSQL database be used, due to the fact that all MPOSAir services use it. If any other database is being used, the package will throw an error in the Console and the clean up process will not take place.
The rules are being described in a configuration json file, with the following syntax:
{
"StartTime": "14:00:00",
"DaysOld": 30,
"Tables": [ "table1", "table2" ]
}
If the file structure is not met or the data is invalid, the package will throw the errors inside the Console.
At this point, the default values for the CleanUpPeriod object are:
- Daily
- Weekly - every Sunday
- Monthly - the 1st of every month
- Yearly - the last day of the year
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp3.1 is compatible. |
-
.NETCoreApp 3.1
- Microsoft.AspNetCore.Hosting.Abstractions (>= 2.2.0)
- Newtonsoft.Json (>= 12.0.3)
- Npgsql.EntityFrameworkCore.PostgreSQL (>= 3.1.4)
- Serilog (>= 2.10.0)
- Serilog.Sinks.Console (>= 3.1.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.