MooringSDK 1.6.8
dotnet add package MooringSDK --version 1.6.8
NuGet\Install-Package MooringSDK -Version 1.6.8
<PackageReference Include="MooringSDK" Version="1.6.8" />
<PackageVersion Include="MooringSDK" Version="1.6.8" />
<PackageReference Include="MooringSDK" />
paket add MooringSDK --version 1.6.8
#r "nuget: MooringSDK, 1.6.8"
#:package MooringSDK@1.6.8
#addin nuget:?package=MooringSDK&version=1.6.8
#tool nuget:?package=MooringSDK&version=1.6.8
About
The MooringSDK is an SDK provided by Phaidra to simplify site integration by providing Authentication mangement, persistent caching, and stream management. It requires a number of configurations that are provided by Phaidra during the onboarding process.
The source code for this SDK is available as requested, as is additional documentation.
For more questions about the process, configurations, etc. Please reach out to the customer success team and they'll be happy to help.
Quickstart
The SDK is meant to act as a singleton within your client. Thus it should be configured and created once, and used across your code as required.
var auth0Endpoint = ""; // Provided by Phaidra
var auth0ClientID = ""; // Provided by Phaidra
var auth0ClientSecret = ""; // Provided by Phaidra
var authConfig = new Auth0Config(auth0Endpoint, auth0ClientID, auth0ClientSecret);
var phaidraEndpoint = ""; // Provided by Phaidra
var phaidraHealthpoint = ""; // Provided by Phaidra
var connectionID = ""; // Provided by Phaidra
var cacheDir = "/tmp/phaidra-cache" // Directory for persistent cache to be written
var config = new MooringConfig(phaidraEndpoint, phaidraHealthpoint, connectionID, cacheDir, authConfig);
var mooring = new Mooring(config);
The Mooring object will need to be "Started" to spin up background threads for sending data to Phaidra.
mooring.Start();
Now pass the Mooring object to wherever you're fetching sensor data and push the data to Phaidra using the Mooring object's Push() function.
var points = new List<DataPoint>();
var epochTimestamp = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds();
points.Add(new DataPoint(epochTimestamp, "sensor-1", "example-value"));
points.Add(new DataPoint(epochTimestamp, "sensor-2", 123));
points.Add(new DataPoint(epochTimestamp, "sensor-3", 123.456));
points.Add(new DataPoint(epochTimestamp, "sensor-4", true));
mooring.Push(points);
To begin streaming setpoints from Phaidra, a callback will need to be provided. This creates threads in the background.
public async Task ActionCallback(MooringAction action)
{
Console.WriteLine($"Received action {action.SetpointId}");
}
mooring.StartActionStream(ActionCallback);
| 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. 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.0
- BouncyCastle (>= 1.8.9)
- Microsoft.Data.Sqlite (>= 7.0.5)
- Microsoft.Extensions.Logging (>= 7.0.0)
- Newtonsoft.Json (>= 13.0.3)
- System.IdentityModel.Tokens.Jwt (>= 8.0.1)
- System.Runtime.Serialization.Primitives (>= 4.3.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.6.8 | 321 | 8/13/2025 |
| 1.6.7 | 324 | 7/8/2025 |
| 1.6.6 | 235 | 6/5/2025 |
| 1.6.5 | 178 | 5/23/2025 |
| 1.6.3 | 203 | 2/13/2025 |
| 1.6.2 | 221 | 12/13/2024 |
| 1.6.0 | 275 | 8/27/2024 |
| 1.5.1 | 416 | 6/14/2023 |
| 1.5.0 | 243 | 6/8/2023 |
| 1.4.0 | 261 | 5/25/2023 |
| 1.3.6 | 237 | 5/25/2023 |
| 1.3.5 | 255 | 5/25/2023 |
| 1.3.4 | 267 | 5/25/2023 |
| 1.3.3 | 276 | 5/17/2023 |
| 1.3.2 | 278 | 5/11/2023 |
| 1.3.1 | 285 | 5/9/2023 |
| 1.3.0 | 276 | 5/5/2023 |
| 1.2.0 | 285 | 5/4/2023 |
| 1.1.1 | 274 | 5/3/2023 |
| 1.1.0 | 277 | 5/2/2023 |