Tycho 2.1.0
See the version list below for details.
dotnet add package Tycho --version 2.1.0
NuGet\Install-Package Tycho -Version 2.1.0
<PackageReference Include="Tycho" Version="2.1.0" />
paket add Tycho --version 2.1.0
#r "nuget: Tycho, 2.1.0"
// Install Tycho as a Cake Addin #addin nuget:?package=Tycho&version=2.1.0 // Install Tycho as a Cake Tool #tool nuget:?package=Tycho&version=2.1.0
Tycho is a lightweight application framework focused on driving system modularity. It is based on the concept of component self-similarity.
A Tycho application is built from modules which can be self-standing entities or be built from other modules - forming a possibly complex hierarchy. Tycho lets you reason about a module at any level of the hierarchy in complete isolation - you should only care about its interface, contract and direct substructure - the properties that define each Tycho module.
See it in action
Check out
How to use
Define your modules
public sealed class AppModule : TychoModule
{
protected override void DeclareIncomingMessages(IInboxDefinition module, IServiceProvider services)
{
// Declare the interface that your module exposes to its clients
}
protected override void DeclareOutgoingMessages(IOutboxDefinition module, IServiceProvider services)
{
// Declare the contract that your module requires its clients to fulfill
}
protected override void IncludeSubmodules(ISubstructureDefinition module, IServiceProvider services)
{
// Define the submodules that your module will be using
}
protected override void RegisterServices(IServiceCollection services)
{
// Configure the services required by your module's code
}
}
Build the app
var app = await new AppModule()
.FulfillContract(consumer =>
{
// Handle the messages sent by your app (if any)
})
.Configure(configurationBuilder =>
{
// Provide configuration data for your app
}
.Build();
Do the work
app.Publish<SomeEvent>(new());
await app.Execute<SomeCommand>(new());
await app.Execute<SomeQuery, Response>(new());
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. 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 was computed. 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 was computed. 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. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- Microsoft.Extensions.Configuration (>= 7.0.0)
- Microsoft.Extensions.DependencyInjection (>= 7.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.