MPOSAirDataCleanUpSample 0.5.0

dotnet add package MPOSAirDataCleanUpSample --version 0.5.0
NuGet\Install-Package MPOSAirDataCleanUpSample -Version 0.5.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MPOSAirDataCleanUpSample" Version="0.5.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MPOSAirDataCleanUpSample --version 0.5.0
#r "nuget: MPOSAirDataCleanUpSample, 0.5.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.5.0 487 12/18/2020
0.4.1 761 12/17/2020
0.4.0 542 12/17/2020
0.3.4 530 12/16/2020
0.3.3 482 12/16/2020
0.3.2 488 12/16/2020
0.3.1 448 12/16/2020
0.0.3 507 12/16/2020