Inkton.NesterWorks
1.5.1
See the version list below for details.
dotnet add package Inkton.NesterWorks --version 1.5.1
NuGet\Install-Package Inkton.NesterWorks -Version 1.5.1
<PackageReference Include="Inkton.NesterWorks" Version="1.5.1" />
paket add Inkton.NesterWorks --version 1.5.1
#r "nuget: Inkton.NesterWorks, 1.5.1"
// Install Inkton.NesterWorks as a Cake Addin #addin nuget:?package=Inkton.NesterWorks&version=1.5.1 // Install Inkton.NesterWorks as a Cake Tool #tool nuget:?package=Inkton.NesterWorks&version=1.5.1
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.0.0)
- Microsoft.Extensions.Logging (>= 2.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 2.0.0)
- Microsoft.Extensions.Logging.Filter (>= 1.1.2)
- Newtonsoft.Json (>= 10.0.3)
- RabbitMQ.Client (>= 5.0.1)
- 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 | 833 | 8/4/2019 |
1.6.9 | 666 | 7/10/2019 |
1.6.8 | 679 | 6/24/2019 |
1.6.7 | 822 | 6/18/2019 |
1.6.6 | 901 | 3/9/2019 |
1.6.4 | 989 | 1/21/2019 |
1.6.3 | 1,022 | 12/13/2018 |
1.6.2 | 841 | 12/2/2018 |
1.6.1 | 1,012 | 11/18/2018 |
1.6.0 | 802 | 11/18/2018 |
1.5.6 | 919 | 10/3/2018 |
1.5.5 | 884 | 9/28/2018 |
1.5.4 | 1,131 | 9/12/2018 |
1.5.3 | 962 | 8/31/2018 |
1.5.2 | 966 | 8/23/2018 |
1.5.1 | 1,777 | 1/12/2018 |
1.5.0 | 1,075 | 1/11/2018 |
1.4.1 | 1,303 | 1/3/2018 |
1.4.0 | 1,088 | 1/3/2018 |
1.3.1 | 1,043 | 12/15/2017 |
1.3.0 | 1,264 | 8/22/2017 |
1.2.2 | 958 | 8/15/2017 |
1.2.1 | 937 | 8/10/2017 |
1.2.0 | 932 | 8/10/2017 |
1.1.0 | 1,061 | 8/9/2017 |
1.0.6 | 930 | 8/2/2017 |
1.0.5 | 956 | 8/2/2017 |
1.0.4 | 1,054 | 7/16/2017 |
1.0.3 | 967 | 7/16/2017 |
1.0.2 | 953 | 7/13/2017 |
1.0.1 | 1,028 | 7/5/2017 |
1.0.0 | 1,281 | 6/29/2017 |
added cloud result