ValidicInformSDK 0.10.0

dotnet add package ValidicInformSDK --version 0.10.0
NuGet\Install-Package ValidicInformSDK -Version 0.10.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ValidicInformSDK" Version="0.10.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ValidicInformSDK --version 0.10.0
#r "nuget: ValidicInformSDK, 0.10.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install ValidicInformSDK as a Cake Addin
#addin nuget:?package=ValidicInformSDK&version=0.10.0

// Install ValidicInformSDK as a Cake Tool
#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

VALIDIC

Product 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. 
.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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
0.10.0 458 11/17/2020
0.9.0 439 11/5/2020

Added basic AWS Kinesis Producer capabilities