Tectonic.Abstractions
0.12.1
dotnet add package Tectonic.Abstractions --version 0.12.1
NuGet\Install-Package Tectonic.Abstractions -Version 0.12.1
<PackageReference Include="Tectonic.Abstractions" Version="0.12.1" />
<PackageVersion Include="Tectonic.Abstractions" Version="0.12.1" />
<PackageReference Include="Tectonic.Abstractions" />
paket add Tectonic.Abstractions --version 0.12.1
#r "nuget: Tectonic.Abstractions, 0.12.1"
#:package Tectonic.Abstractions@0.12.1
#addin nuget:?package=Tectonic.Abstractions&version=0.12.1
#tool nuget:?package=Tectonic.Abstractions&version=0.12.1
About
Abstractions of Tectonic.Core, a standardized approach for resolving and executing activity based workflows.
How to Use
Add a reference to the abstractions from your library project:
<PackageReference Include="Tectonic.Abstractions" Version="0.8.0" />
Create a class that implements IActivity<TInput, TOutput>.
The constructor should assign any services you require via dependency injection.
The TInput and TOutput can be any class, the execution environment will handle assigning inputs and displaying outputs.
public class CreateSomethingAsAnActivity : IActivity<MyInputClass, MyOutputClass>
{
private readonly ILogger<CreateSomethingAsAnActivity> _logger;
public CreateSomethingAsAnActivity(ILogger<CreateSomethingAsAnActivity> logger)
{
_logger = logger;
}
public Task<MyOutputClass> Execute(MyInputClass inputs)
{
// Do something with the inputs
MyOutputClass outputs = new();
// Do something with the outputs
return Task.FromResult(outputs);
}
}
Refer to Tectonic.Extensions.CommandLine for how to execute activities and workflows on the command line.
Examples
- The unit tests provide clear examples of how to use the library.
- Tectonic.Extensions.CommandLine provides an implementation for executing Tectonic Workflows on the command line.
- Tectonic.Server and Tectonic.WebAssembly provide an implementation for executing Tectonic Workflows as a Blazor UI application.
- Orbit uses Tectonic activities for its command line interface.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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
- No dependencies.
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Tectonic.Abstractions:
| Package | Downloads |
|---|---|
|
Tectonic.Core
A library providing a standardized approach for resolving and executing activity based workflows. |
|
|
StudioLE.Orbit.Core
A library providing infrastructure-as-code and git-ops methods for creating and managing virtual machines with LXD. |
GitHub repositories
This package is not used by any popular GitHub repositories.