Inkton.NesterWorks
1.5.2
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
<PackageReference Include="Inkton.NesterWorks" Version="1.5.2" />
paket add Inkton.NesterWorks --version 1.5.2
#r "nuget: Inkton.NesterWorks, 1.5.2"
// 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 | 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. |
.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
- Microsoft.Extensions.Configuration (>= 2.1.1)
- Microsoft.Extensions.Logging (>= 2.1.1)
- Microsoft.Extensions.Logging.Abstractions (>= 2.1.1)
- Microsoft.Extensions.Logging.Filter (>= 1.1.2)
- Newtonsoft.Json (>= 11.0.2)
- Pomelo.EntityFrameworkCore.MySql (>= 2.1.1)
- RabbitMQ.Client (>= 5.1.0)
- System.Collections (>= 4.3.0)
- System.Collections.Concurrent (>= 4.3.0)
- System.IO.FileSystem (>= 4.3.0)
- System.Threading.Tasks (>= 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.10 | 832 | 8/4/2019 |
1.6.9 | 665 | 7/10/2019 |
1.6.8 | 678 | 6/24/2019 |
1.6.7 | 821 | 6/18/2019 |
1.6.6 | 900 | 3/9/2019 |
1.6.4 | 988 | 1/21/2019 |
1.6.3 | 1,019 | 12/13/2018 |
1.6.2 | 840 | 12/2/2018 |
1.6.1 | 1,011 | 11/18/2018 |
1.6.0 | 801 | 11/18/2018 |
1.5.6 | 918 | 10/3/2018 |
1.5.5 | 883 | 9/28/2018 |
1.5.4 | 1,130 | 9/12/2018 |
1.5.3 | 961 | 8/31/2018 |
1.5.2 | 965 | 8/23/2018 |
1.5.1 | 1,776 | 1/12/2018 |
1.5.0 | 1,074 | 1/11/2018 |
1.4.1 | 1,302 | 1/3/2018 |
1.4.0 | 1,087 | 1/3/2018 |
1.3.1 | 1,042 | 12/15/2017 |
1.3.0 | 1,261 | 8/22/2017 |
1.2.2 | 957 | 8/15/2017 |
1.2.1 | 936 | 8/10/2017 |
1.2.0 | 931 | 8/10/2017 |
1.1.0 | 1,060 | 8/9/2017 |
1.0.6 | 929 | 8/2/2017 |
1.0.5 | 955 | 8/2/2017 |
1.0.4 | 1,053 | 7/16/2017 |
1.0.3 | 966 | 7/16/2017 |
1.0.2 | 952 | 7/13/2017 |
1.0.1 | 1,027 | 7/5/2017 |
1.0.0 | 1,280 | 6/29/2017 |