VOOZH about

URL: https://www.nuget.org/packages/Routine/

⇱ NuGet Gallery | Routine 10.0.0




👁 Image
Routine 10.0.0

dotnet add package Routine --version 10.0.0
 
 
NuGet\Install-Package Routine -Version 10.0.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="Routine" Version="10.0.0" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Routine" Version="10.0.0" />
 
Directory.Packages.props
<PackageReference Include="Routine" />
 
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 Routine --version 10.0.0
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Routine, 10.0.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 Routine@10.0.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=Routine&version=10.0.0
 
Install as a Cake Addin
#tool nuget:?package=Routine&version=10.0.0
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Routine

Routine is a service framework for building efficient, scalable .NET server-side applications. It enables you to quickly create HTTP APIs from your existing code base.

Consider below example;

public class GreetingService
{
 public string Greet(PersonDto person)
 {
 return $"Hello {person}!";
 }
}

public record PersonDto(string Name, string Surname);

To expose Greet method as a service, below configuration is sufficient;

app.UseRoutine(
 serviceConfiguration: sc => sc.FromBasic(),
 codingStyle: cs => cs.FromBasic()
 .AddTypes(typeof(Startup).Assembly, t => t.IsPublic)

 //Service Configuration
 .Locator.Set(c => c
 .Locator(l => l.Singleton(t => t.CreateInstance()))
 .When(t => t.Name.EndsWith("Service"))
 )
 .Operations.Add(c => c
 .PublicMethods()
 .When(t => t.Name.EndsWith("Service"))
 )

 //Dto Configuration
 .Initializers.Add(c => c
 .PublicConstructors()
 .When(t => t.Name.EndsWith("Dto"))
 )
 .Datas.Add(c => c
 .PublicProperties()
 .When(t => t.Name.EndsWith("Dto"))
 )
);

You can navigate through sample projects in samples folder to see example usages.

Routine was developed in inventiv for internal use and has been used in production since 2014. Any contribution is welcome and appreciated.

Have fun!

Product Versions Compatible and additional computed target framework versions.
.NET net10.0 net10.0 is compatible.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows 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 (2)

Showing the top 2 NuGet packages that depend on Routine:

Package Downloads
Gazel.Configuration

Gazel is a back-end development framework for the .NET framework. This package contains the configuration layer of Gazel and should be used in your app projects.

Gazel.Client

Gazel is a back-end development framework for the .NET framework. This package contains the service client layer of Gazel and should be used in your .NET applications that consume your back-end services.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
10.0.0 141 6/9/2026
8.0.1 608 3/17/2025
8.0.0 1,521 6/26/2024
6.1.3 3,382 2/7/2023
6.1.2 589 2/3/2023
6.1.1 599 1/19/2023
6.1.0 1,479 11/4/2022
6.0.2 911 10/6/2022
6.0.1 658 9/30/2022
6.0.0 614 9/21/2022
0.9.6 5,242 3/28/2022
0.9.5 752 12/9/2021
0.9.4 523 12/9/2021
0.9.3 492 12/7/2021
0.9.2 539 11/3/2021
0.9.1 537 8/26/2021
0.9.0 538 8/26/2021
0.8.3 743 2/12/2021
0.8.2 933 3/10/2020
0.8.1 706 2/4/2020
Loading failed