From 6d462cb24433c60244f3a455ca40ab57051793c7 Mon Sep 17 00:00:00 2001 From: Tim Abell Date: Fri, 23 Oct 2020 16:24:48 +0100 Subject: [PATCH] Readme - add OneOf to pattern list --- src/Dfc.CourseDirectory.WebV2/README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Dfc.CourseDirectory.WebV2/README.md b/src/Dfc.CourseDirectory.WebV2/README.md index ce143e0d3..6d6f433e5 100644 --- a/src/Dfc.CourseDirectory.WebV2/README.md +++ b/src/Dfc.CourseDirectory.WebV2/README.md @@ -22,6 +22,10 @@ For an intro to MediatR in controllers see: * https://jonhilton.net/2016/06/06/simplify-your-controllers-with-the-command-pattern-and-mediatr/ * https://alexlindgren.com/posts/thin-controllers-using-mediatr-with-aspnet-mvc/ +### OneOf + +`OneOf<>` gives us better compile time checks for passing around one of multiple types. See the [OneOf readme](https://github.com/mcintyre321/OneOf/#readme) for further explanation. + ### Tests There are no controller tests because the controller actions are very thin mappings.