ValidicInformSDK 0.10.0
dotnet add package ValidicInformSDK --version 0.10.0
NuGet\Install-Package ValidicInformSDK -Version 0.10.0
<PackageReference Include="ValidicInformSDK" Version="0.10.0" />
<PackageVersion Include="ValidicInformSDK" Version="0.10.0" />
<PackageReference Include="ValidicInformSDK" />
paket add ValidicInformSDK --version 0.10.0
#r "nuget: ValidicInformSDK, 0.10.0"
#addin nuget:?package=ValidicInformSDK&version=0.10.0
#tool nuget:?package=ValidicInformSDK&version=0.10.0
ValidicDotNetSDK
ValidicDotNetSDK is a DotNet library for connecting to the Validic Streaming API, receiving SSE Events, parsing those events, and staging them for further processing.
Installation
It is recommended to use nuget to install ValidicDotNetSDK.
dotnet add package ValidicInformSDK --version 0.9.0
Usage for implementing Streaming API Client
using Validic.Streams;
using Validic.Publishers;
using Validic.Configuration;
const string STREAM_CONFIG_FILE_PATH = @"./application.json";
Config config = new Config(STREAM_CONFIG_FILE_PATH);
StreamConsumerSet streamConsumers = new StreamConsumerSet(config);
Usage for implementing IPublisher based class
Note: BasePublisher implements IPublisher interface
using Validic.Publishers;
using Validic.Models.Resources;
using Validic.Models.Streams;
class MyPublisher : BasePublisher
{
public override void PublishResource(Resource r, StreamConsumerMetaData m)
{
Console.WriteLine($"MY RESOURCE[{m.consumerId}|{m.resourceCounter}]: {r.serialize()}");
}
public override void PublishPoke(StreamPoke poke, StreamConsumerMetaData metaData)
{
Console.Write($"MY POKE:");
base.PublishPoke(poke, metaData);
}
}
Configuration File Example
The following example configuration file is set up to use 5 connections to communicate with the Validic Streaming API and publishes events to each of the 3 defined publishers. Note that the publisherClassName is the fully qualified class name, including project name.
{
"streamId": "0000SAMPLE_STREAM_ID000",
"token": "0000000000SAMPLE_TOKEN0000000000",
"connectionCount": 5,
"dataFlowTimeoutMs": 10000,
"publishers": [
{
"publisherType": "mypublisher",
"publisherClassName": "Validic.Sample.MyPublisher, Validic.Sample"
},
{
"publisherType": "stdout",
"publisherClassName": "Validic.Publishers.StandardOutPublisher, Validic.Inform"
},
{
"publisherType": "azure",
"publisherEnabled": false,
"publisherClassName": "Validic.Publishers.AzureEventHubPublisher, Validic.Inform",
"options": [
{
"key": "connectionString",
"value": "Endpoint=sb://<FQDN>/;SharedAccessKeyName=<KeyName>;SharedAccessKey=<KeyValue>"
},
{
"key": "eventHubName",
"value": "<EventHubName>"
}
]
},
{
"publisherType": "kinesis",
"publisherEnabled": false,
"publisherClassName": "Validic.Publishers.KinesisPublisher, Validic.Inform",
"options": [
{
"key": "profileName",
"value": "<AWSCredentialsProfileName>"
},
{
"key": "region",
"value": "<RegionEndPointString>"
},
{
"key": "streamName",
"value": "<KinesisStreamName>"
}
]
}
]
}
License
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 | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | 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.1
- 3v.EvtSource (>= 2.0.0)
- AWSSDK.Kinesis (>= 3.5.0.37)
- Azure.Messaging.EventHubs (>= 5.2.0)
- Newtonsoft.Json (>= 12.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Added basic AWS Kinesis Producer capabilities