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
                    
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="ServiceBricks.Work.Microservice" Version="1.4.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ServiceBricks.Work.Microservice" Version="1.4.0" />
                    
Directory.Packages.props
<PackageReference Include="ServiceBricks.Work.Microservice" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ServiceBricks.Work.Microservice --version 1.4.0
                    
#r "nuget: ServiceBricks.Work.Microservice, 1.4.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.
#:package ServiceBricks.Work.Microservice@1.4.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ServiceBricks.Work.Microservice&version=1.4.0
                    
Install as a Cake Addin
#tool nuget:?package=ServiceBricks.Work.Microservice&version=1.4.0
                    
Install as a Cake Tool

ServiceBricks Logo

NuGet version License: MIT

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 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. 
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
1.4.0 0 1/1/2026
1.4.0-e 203 12/19/2025
1.4.0-d 258 12/17/2025
1.4.0-c 244 12/15/2025
1.4.0-a 415 12/10/2025
1.3.0 208 3/18/2025
1.3.0-c 183 3/16/2025
1.3.0-a 143 2/2/2025