MigratoryData.Client.DotNet 6.0.3

.NET Standard 2.0
dotnet add package MigratoryData.Client.DotNet --version 6.0.3
NuGet\Install-Package MigratoryData.Client.DotNet -Version 6.0.3
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="MigratoryData.Client.DotNet" Version="6.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MigratoryData.Client.DotNet --version 6.0.3
#r "nuget: MigratoryData.Client.DotNet, 6.0.3"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install MigratoryData.Client.DotNet as a Cake Addin
#addin nuget:?package=MigratoryData.Client.DotNet&version=6.0.3

// Install MigratoryData.Client.DotNet as a Cake Tool
#tool nuget:?package=MigratoryData.Client.DotNet&version=6.0.3

MigratoryData Client SDK for .Net


Please refer to the Developer's Guide and the Reference Manual of the MigratoryData Client SDK for .Net located at:



Steps for building realtime client applications using C# .NET


.Net SDK

Create Project

Create a getting started project with:

dotnet new console -n getting-started-csharp-client-api

Add API library

Change to the folder of your project and add the API library with:

dotnet add package MigratoryData.Client.DotNet --version 6.0.3


Copy the below code snippet to the file Program.cs of your project.

Build & Run

Use the following command to build and run your project:

dotnet run


Open the Console page of MigratoryData Cloud, connect and subscribe to the default subject to see how messages published by this client application are received in realtime. Also, publish from the Console messages on the default subject and see in the output of this client application how messages are received in realtime.

// For API documentation go to (Developer’s Guide)[https://migratorydata.com/docs/migratorydata-client-sdks/dotnet/getting_started/]
using System;
using System.Collections.Generic;
using com.migratorydata.client;
using System.Threading;
namespace example
    class Program
        static void Main(string[] args)
            MigratoryDataClient client = new MigratoryDataClient();
            client.SetLogListener(new LogList(), MigratoryDataLogLevel.DEBUG);
            client.SetListener(new Listener());

            client.SetServers(new string[] { "" });

            List<string> subjects = new List<string>();


            // publish a message every 3 seconds
            int count = 1;
            while (count < 1000000)
                client.Publish(new MigratoryDataMessage("/server/status", System.Text.Encoding.ASCII.GetBytes("data - " + count), "id" + count));
        class Listener : MigratoryDataListener
            public void OnMessage(MigratoryDataMessage message)
            public void OnStatus(string status, string info)
                System.Console.WriteLine(status + " " + info);
        class LogList : MigratoryDataLogListener
            public void OnLog(string log, MigratoryDataLogLevel level)
                string msg = string.Format("[{0:G}] [{1}] {2}", DateTime.Now, level, log);
Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48 net481
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.0

    • No dependencies.

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
6.0.3 138 11/30/2022
6.0.2 137 11/30/2022
6.0.1 233 8/2/2021