We highly recommended you to read the Overview first.
Install:
- .NET Core SDK 3.1 - you need it
to build
Stl.Fusion
, its samples, and this tutorial - try-dotnet -
it's the tool to "run" the tutorial. If its release version fails to run
the code (right now it does, the bug is reported), you'll need to install
its preview version using the following command:
dotnet tool install -g --add-source "https://dotnet.myget.org/F/dotnet-try/api/v3/index.json" Microsoft.dotnet-try
To run the tutorial, cd
to the "tutorial" folder and type:
dotnet try
The code based on Stl.Fusion
(we'll refer to it as "Fusion" further)
might look completely weird at first - that's because it is based
on abstractions you need to learn about before starting
to dig into the code.
Understanding how they work will also eliminate a lot of questions you might get further, so we highly recommend you to complete this tutorial before digging into the source code of Fusion samples.
Without further ado:
- Part 0: NuGet packages
- Part 1:
IComputed<TOut>
andSimpleComputed<TOut>
- Part 2: Dependencies between computed instances
- Part 3:
IComputedService
and a nicer way to createIComputed<TOut>
- Part 4: Computed Services: execution, caching, and invalidation
- Part 5: Computed Services: dependencies
- Part 6: Computed Instances and Computed Services - Review
- Part 7+: To be added later this week.