ServiceBricks.Work.Microservice
1.4.0
dotnet add package ServiceBricks.Work.Microservice --version 1.4.0
NuGet\Install-Package ServiceBricks.Work.Microservice -Version 1.4.0
<PackageReference Include="ServiceBricks.Work.Microservice" Version="1.4.0" />
<PackageVersion Include="ServiceBricks.Work.Microservice" Version="1.4.0" />
<PackageReference Include="ServiceBricks.Work.Microservice" />
paket add ServiceBricks.Work.Microservice --version 1.4.0
#r "nuget: ServiceBricks.Work.Microservice, 1.4.0"
#:package ServiceBricks.Work.Microservice@1.4.0
#addin nuget:?package=ServiceBricks.Work.Microservice&version=1.4.0
#tool nuget:?package=ServiceBricks.Work.Microservice&version=1.4.0

ServiceBricks Work Microservice
Overview
This repository contains the work microservice built using the ServiceBricks foundation. The work microservice exposes a ProcessDto object used to store a ProcessQueue, ProcessType and ProcessData properties that are used to process work from a table like a queue using the WorkService class. It exposes an abstract class WorkProcessService that encapsulates the functionality for you.
Data Transfer Objects
ProcessDto - Admin Policy
Used to process a table like a queue.
public partial class ProcessDto : DataTransferObject, IDpWorkProcess
{
/// <summary>
/// This is the create date.
/// </summary>
public DateTimeOffset CreateDate { get; set; }
/// <summary>
/// This is the update date.
/// </summary>
public DateTimeOffset UpdateDate { get; set; }
/// <summary>
/// The queue name.
/// </summary>
public string ProcessQueue { get; set; }
/// <summary>
/// The work type.
/// </summary>
public string ProcessType { get; set; }
/// <summary>
/// The work details.
/// </summary>
public string ProcessData { get; set; }
/// <summary>
/// Determine if completed processing.
/// </summary>
public bool IsComplete { get; set; }
/// <summary>
/// Determine if an error occured.
/// </summary>
public bool IsError { get; set; }
/// <summary>
/// Determine if currently processing.
/// </summary>
public bool IsProcessing { get; set; }
/// <summary>
/// The retry count.
/// </summary>
public int RetryCount { get; set; }
/// <summary>
/// The processing date.
/// </summary>
public DateTimeOffset ProcessDate { get; set; }
/// <summary>
/// The future processing date.
/// </summary>
public DateTimeOffset FutureProcessDate { get; set; }
/// <summary>
/// The process response.
/// </summary>
public string ProcessResponse { get; set; }
}
Background Tasks and Timers
None
Events
None
Processes
None
Service Bus
None
Additional
WorkProcessService class
This abstract class provides the functionality to process the ProcessDto table like a queue. Each derived class should set the ProcessQueue name, so the table can be used with multiple-queues. It relies on the ServiceBricks Cache Microservice to provide a distributed semaphore, to provide a gate with multiple servers running.
Application Settings
None
About ServiceBricks
ServiceBricks is the cornerstone for building a microservices foundation. Visit https://ServiceBricks.com to learn more.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 is compatible. 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 is compatible. 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 is compatible. 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. 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 is compatible. 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. |
-
net10.0
- ServiceBricks.Core (>= 1.4.0)
- ServiceBricks.Work.Model (>= 1.4.0)
-
net6.0
- ServiceBricks.Core (>= 1.4.0)
- ServiceBricks.Work.Model (>= 1.4.0)
-
net7.0
- ServiceBricks.Core (>= 1.4.0)
- ServiceBricks.Work.Model (>= 1.4.0)
-
net8.0
- ServiceBricks.Core (>= 1.4.0)
- ServiceBricks.Work.Model (>= 1.4.0)
-
net9.0
- ServiceBricks.Core (>= 1.4.0)
- ServiceBricks.Work.Model (>= 1.4.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.