Skip to content

Commit

Permalink
v6.3.0: reorganized dependencies, aspnetcore3.1 (instead of 3.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
justdmitry committed Dec 16, 2019
1 parent fdcb097 commit 55e3736
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 20 deletions.
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,17 @@ Each task is a separate `Task`, which sleeps in background for a while, wakes up

Ideal, when you don't need to run many/heavy tasks and don't want to use "big" solutions with persistence and other bells and whistles.

Written for **ASP.NET Core 2.1** (support for ASP.NET 5 and ASP.NET Core 1.0 and 2.0 is dropped since v6, use [v5.0.0 release](https://github.com/justdmitry/RecurrentTasks/releases/tag/v5.0.0) if you need support for old frameworks).
Written for **NET Core** (support for ASP.NET 5 and ASP.NET Core 1.0 and 2.0 is dropped since v6, use [v5.0.0 release](https://github.com/justdmitry/RecurrentTasks/releases/tag/v5.0.0) if you need support for old frameworks).

[![Build status](https://ci.appveyor.com/api/projects/status/uucaowlbcxybi4v6/branch/master?svg=true)](https://ci.appveyor.com/project/justdmitry/recurrenttasks/branch/master)
[![NuGet](https://img.shields.io/nuget/v/RecurrentTasks.svg?maxAge=86400&style=flat)](https://www.nuget.org/packages/RecurrentTasks/)
[![codecov](https://codecov.io/gh/justdmitry/RecurrentTasks/branch/master/graph/badge.svg)](https://codecov.io/gh/justdmitry/RecurrentTasks)

## Main features

* TargetFrameworks: `netstandard2.0` and `netcoreapp3.1`
* Start and Stop your task at any time;
* [`IHostedService`](https://docs.microsoft.com/en-us/dotnet/standard/microservices-architecture/multi-container-microservice-net-applications/background-tasks-with-ihostedservice) implemented for ASP.Net Core 2.1 app lifetime support
* [`IHostedService`](https://docs.microsoft.com/en-us/dotnet/standard/microservices-architecture/multi-container-microservice-net-applications/background-tasks-with-ihostedservice) implemented for NET Core 2.0 (and above) app lifetime support
* CancelationToken may be used for Stopping;
* First run (after Start) is delayed at random value (10-30 sec, customizable) to prevent app freeze during statup;
* Run "immediately" (without waiting for next scheduled time);
Expand Down Expand Up @@ -96,11 +97,9 @@ Use NuGet package [RecurrentTasks](https://www.nuget.org/packages/RecurrentTasks

### Dependencies

* Microsoft.AspNetCore.Http.Abstractions, v2.1.0
* Microsoft.Extensions.DependencyInjection.Abstractions, v2.1.0
* Microsoft.Extensions.Hosting.Abstractions, v2.1.0
* Microsoft.Extensions.Logging.Abstractions, v2.1.0
* Microsoft.Extensions.Options, v2.1.0
* Microsoft.Extensions.DependencyInjection.Abstractions, v2.0.0 (for `netstandard2.0`) / v3.1.0 (for `netcoreapp3.1`)
* Microsoft.Extensions.Hosting.Abstractions, v2.0.0 / v3.1.0
* Microsoft.Extensions.Logging.Abstractions, v2.0.0 / v3.1.0

## Testing

Expand Down
2 changes: 1 addition & 1 deletion sample/RecurrentTasks.Sample/RecurrentTasks.Sample.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFrameworks>netcoreapp2.1;netcoreapp3.0</TargetFrameworks>
<TargetFrameworks>netcoreapp2.1;netcoreapp3.1</TargetFrameworks>
<PreserveCompilationContext>true</PreserveCompilationContext>
<AssemblyName>RecurrentTasks.Sample</AssemblyName>
<OutputType>Exe</OutputType>
Expand Down
18 changes: 10 additions & 8 deletions src/RecurrentTasks/RecurrentTasks.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
<PropertyGroup>
<Copyright>Dmitry Popov, 2016-2019</Copyright>
<AssemblyTitle>RecurrentTasks</AssemblyTitle>
<TargetFrameworks>netstandard2.0;netcoreapp3.0</TargetFrameworks>
<TargetFrameworks>netstandard2.0;netcoreapp3.1</TargetFrameworks>
<AssemblyName>RecurrentTasks</AssemblyName>
<PackageId>RecurrentTasks</PackageId>
<PackageTags>task;job;recurrent;recurring;aspnetcore</PackageTags>
<PackageReleaseNotes>https://github.com/justdmitry/RecurrentTasks/releases/tag/v6.2.0</PackageReleaseNotes>
<PackageReleaseNotes>https://github.com/justdmitry/RecurrentTasks/releases/tag/v6.3.0</PackageReleaseNotes>
<PackageProjectUrl>https://github.com/justdmitry/RecurrentTasks</PackageProjectUrl>
<PackageLicenseUrl></PackageLicenseUrl>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/justdmitry/RecurrentTasks.git</RepositoryUrl>
<Version>6.2.0</Version>
<Version>6.3.0</Version>
<Description>RecurrentTasks for .NET allows you to run simple recurrent background tasks with specific intervals, without complex frameworks, persistance, etc...</Description>
<Authors>just_dmitry</Authors>
<Company />
Expand All @@ -29,13 +29,15 @@
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
<PackageReference Include="Microsoft.AspNetCore.Http.Abstractions" Version="2.1.0" />
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="2.1.1" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="2.0.0" />
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="2.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="2.0.0" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp3.0'">
<PackageReference Include="Microsoft.AspNetCore.Http.Abstractions" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="3.0.0" />
<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp3.1'">
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="3.1.0" />
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="3.1.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="3.1.0" />
</ItemGroup>

<ItemGroup>
Expand Down
8 changes: 4 additions & 4 deletions test/RecurrentTasks.Tests/RecurrentTasks.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>netcoreapp2.1;netcoreapp3.0</TargetFrameworks>
<TargetFrameworks>netcoreapp2.1;netcoreapp3.1</TargetFrameworks>
<AssemblyName>RecurrentTasks.Tests</AssemblyName>
<PackageId>RecurrentTasks.Tests</PackageId>
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
Expand Down Expand Up @@ -29,9 +29,9 @@
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="2.1.1" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp3.0'">
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="3.0.1" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="3.0.1" />
<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp3.1'">
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="3.1.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="3.1.0" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit 55e3736

Please sign in to comment.