Inkton.NesterWorks 1.5.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package Inkton.NesterWorks --version 1.5.2
NuGet\Install-Package Inkton.NesterWorks -Version 1.5.2
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="Inkton.NesterWorks" Version="1.5.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Inkton.NesterWorks --version 1.5.2
#r "nuget: Inkton.NesterWorks, 1.5.2"
#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 Inkton.NesterWorks as a Cake Addin
#addin nuget:?package=Inkton.NesterWorks&version=1.5.2

// Install Inkton.NesterWorks as a Cake Tool
#tool nuget:?package=Inkton.NesterWorks&version=1.5.2

Introduction

NesterWorks is a library used by nest.yt apps to access nest.yt PaaS services. The source code complies with .NET Standard 2.0.

Dependencies

Current Release Dependency
1.5.1 nester.model v1.0.1

Getting Started

1. Source code Install

git clone --branch v1.0.1 https://github.com/inkton/nester.model.git
git clone --branch v1.5.1 https://github.com/inkton/nester.works.git
cd nester.works
dotnet restore
dotnet build

2. Installation via NuGet

dotnet add package Inkton.NesterWorks
or Install-Package Inkton.NesterWorks

3. Runtime information

The login details to access the services can be obtained by the runtime.

eg. MySQL Connection Details

    Runtime runtime = new Runtime();
    services.AddDbContext<CafeContext>(options =>
       options.UseMySql(
            string.Format(@"Server={0};database={1};uid={2};pwd={3};",
                 runtime.MySQL.Host,
                 runtime.MySQL.Resource,
                 runtime.MySQL.User,
                 runtime.MySQL.Password)
    ));`   

4. Queue Service

The platform provides a queue service to send messages between nest-cushions or the containers that handle execution.

eg. Queue Server

The routing is performed by the QueueSendType runtime member. The queue receiver can identify the type of object received from the QueueSendType property.

    Runtime runtime = new Runtime(QueueMode.Server);
    runtime.QueueSendType = "Order";    
    
    runtime.SendToNest(JsonConvert.SerializeObject(order), "stockallocator");

eg. Queue Client

        static object Parse(IDictionary<string, object> headers, string message)
        {
            if (headers != null && headers.ContainsKey("Type"))
            {
                switch(Encoding.Default.GetString(headers["Type"] as byte[]))
                {
                    case "Order":
                        return JsonConvert.DeserializeObject<Order>(message);
                }
            }

            return null;
        }
    Runtime runtime = new Runtime(QueueMode.Client);
    Runtime.ReceiveParser parsr = new Runtime.ReceiveParser(Parse);`   
    Order order = runtime.Receive(parsr) as Order;

5. nest.yt Standard responses

The nester.library client expects server responses in a standard JSON format. The server can generate responses using the following mechanism.

    using Cloud = Inkton.Nester.Cloud;

    Cloud.Result<Message> result = new Cloud.Result<Message>();

    result.SetSuccess("message", message);
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 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. 
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
1.6.10 779 8/4/2019
1.6.9 639 7/10/2019
1.6.8 649 6/24/2019
1.6.7 806 6/18/2019
1.6.6 863 3/9/2019
1.6.4 976 1/21/2019
1.6.3 996 12/13/2018
1.6.2 808 12/2/2018
1.6.1 971 11/18/2018
1.6.0 789 11/18/2018
1.5.6 878 10/3/2018
1.5.5 863 9/28/2018
1.5.4 1,092 9/12/2018
1.5.3 929 8/31/2018
1.5.2 935 8/23/2018
1.5.1 1,746 1/12/2018
1.5.0 1,042 1/11/2018
1.4.1 1,270 1/3/2018
1.4.0 1,062 1/3/2018
1.3.1 1,013 12/15/2017
1.3.0 1,236 8/22/2017
1.2.2 931 8/15/2017
1.2.1 904 8/10/2017
1.2.0 901 8/10/2017
1.1.0 1,036 8/9/2017
1.0.6 900 8/2/2017
1.0.5 928 8/2/2017
1.0.4 1,024 7/16/2017
1.0.3 935 7/16/2017
1.0.2 928 7/13/2017
1.0.1 1,002 7/5/2017
1.0.0 1,250 6/29/2017