The 51Degrees Pipeline API provides a fast, modern architecture for consuming real-time digital data services. This package contains base classes that provide functionality used by 51Degrees engines.
| Engines.TestHelpers |
| Web.Shared |
This repository contains all the projects required to build the .NET implementation of the Pipeline API. Individual engines (For example, device detection) are in separate repositories.
The specification is also available on GitHub and is recommended reading if you wish to understand the concepts and design of this API.
Visual Studio 2022 or later is recommended. Although Visual Studio Code can be used for working with most of the projects.
The Pipeline projects are written in C# and target .NET Standard 2.0.3 The Web integration multi-targets the following: - .NET Core 3.1 - .NET Core 8.0 - .NET Framework 4.6.2
The tested versions page shows the .NET versions that we currently test against. The software may run fine against other versions, but additional caution should be applied.
You can either clone this repository and reference the projects locally or you can reference the NuGet packages directly.
Install-Package FiftyOne.Pipeline.Core
Install-Package FiftyOne.Pipeline.Engines
Install-Package FiftyOne.Pipeline.Engines.FiftyOne
Install-Package FiftyOne.Pipeline.Web
Install-Package FiftyOne.Pipeline.Web.Minify
Install-Package FiftyOne.Pipeline.JsonBuilder
Install-Package FiftyOne.Pipeline.JavaScriptBuilder
Install-Package FiftyOne.Pipeline.CloudRequestEngine
Note that the packages have dependencies on each other so you'll never need to install all of them individually.
For example, Installing FiftyOne.Pipeline.Engines.FiftyOne will automatically add FiftyOne.Pipeline.Engines and FiftyOne.Pipeline.Core.
There are several examples available that demonstrate how to make use of the Pipeline API in isolation. These are described in the table below. If you want examples that demonstrate how to use 51Degrees products such as device detection, then these are available in the corresponding repository and on our website.
| Example | Description |
|---|---|
| CustomFlowElement\1. Simple Flow Element | Shows how to create a custom flow element that returns star sign based on a supplied date of birth. |
| CustomFlowElement\2. On Premise Engine | Shows how to modify SimpleFlowElement to make use of the 'engine' functionality and use a custom data file to map dates to star signs rather than relying on hard coded data. |
| CustomFlowElement\3. Client-side evidence | Shows how to modify SimpleFlowElement to request the data of birth from the user using client-side JavaScript. |
| CustomFlowElement\4. Cloud Engine | Shows how to modify SimpleFlowElement to perform the star sign lookup via a cloud service rather than locally. |
| ResultCaching | Shows how the result caching feature works. |
| UsageSharing | Shows how to share usage with 51Degrees. This helps us to keep our products up to date and accurate. |
The tests can be run from within Visual Studio or (in most cases) by using the dotnet test command line tool.
For complete documentation on the Pipeline API and associated engines, see the 51Degrees documentation site.