ContainerExpressions provides generic abstractions to remove boilerplate code needed by all programs.
Containers have some utility that extends the underlying type (any T).
Expressions are designed to work on top of containers, helping in common use cases; or quality of life when connecting code together.
For example the Response container's "utility" is to let the caller know if some T value was generated without error.
The expression Retry will attempt to get the T value after x time delay for n attempts, a good combo for intermittent networking errors.
Install-Package ContainerExpressions -Version 7.0.0
dotnet add package ContainerExpressions --version 7.0.0
<PackageReference Include="ContainerExpressions" Version="7.0.0" />
paket add ContainerExpressions --version 7.0.0
#r "nuget: ContainerExpressions, 7.0.0"
// Install ContainerExpressions as a Cake Addin #addin nuget:?package=ContainerExpressions&version=7.0.0 // Install ContainerExpressions as a Cake Tool #tool nuget:?package=ContainerExpressions&version=7.0.0
Breaking change: renamed extension method Response.WithValue(Any T) to Response.With(Any T) to follow the conventions of other containers.
New container Alias allows you to give names to types, while retaining the behavior of the underlying type.
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on ContainerExpressions:
Useful parts of Frameworks wrapped into single types.
This package is not used by any popular GitHub repositories.