BindOpen.Kernel.Data 1.2.99

Suggested Alternatives

BindOpen.Data

The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package BindOpen.Kernel.Data --version 1.2.99                
NuGet\Install-Package BindOpen.Kernel.Data -Version 1.2.99                
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="BindOpen.Kernel.Data" Version="1.2.99" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add BindOpen.Kernel.Data --version 1.2.99                
#r "nuget: BindOpen.Kernel.Data, 1.2.99"                
#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 BindOpen.Kernel.Data as a Cake Addin
#addin nuget:?package=BindOpen.Kernel.Data&version=1.2.99

// Install BindOpen.Kernel.Data as a Cake Tool
#tool nuget:?package=BindOpen.Kernel.Data&version=1.2.99                

BindOpen.Kernel

BindOpen logo

Github release version

BindOpen is a framework that enables the development of highly extensible applications. It allows you to enhance your .NET projects with custom script functions, connectors, entities, and tasks.

About

BindOpen.Kernel is the kernel of the BindOpen framework. It is composed of the following modules:

  • System.Data offers a comprehensive data model based on metadata.
  • System.Scoping offers an effective mechanism for defining and managing your extensions.
  • System.Hosting allows you to integrate a BindOpen agent within the .NET service builder.
  • System.Logging provides a straightforward and multi-dimensional logging system.
  • System.IO provides packages to serialize and deserialize BindOpen.Kernel objects.

This repository contains the System.Data, System.Scoping and System.IO modules. The two other ones are separate repositories.

A full list of all the BindOpen repos is available as well.

Install

To get started, install the BindOpen.Kernel module you want to use.

Note: We recommend that later on, you install only the package you need.

From Visual Studio

Module Instruction
BindOpen.Kernel.Data PM> Install-Package BindOpen.Kernel.Data
BindOpen.Kernel.Scoping PM> Install-Package BindOpen.Kernel.Scoping
BindOpen.Kernel.IO PM> Install-Package BindOpen.Kernel.IO

From .NET CLI

Module Instruction
BindOpen.Kernel.Data > dotnet add package BindOpen.Kernel.Data
BindOpen.Kernel.Scoping > dotnet add package BindOpen.Kernel.Scoping
BindOpen.Kernel.IO > dotnet add package BindOpen.Kernel.IO

Get started

System.Data

Metadata
var meta = BdoData.NewMeta("host", DataValueTypes.Text, "my-test-host");
Configuration
var config = BdoData.NewConfig(
        "test-config",
        BdoData.NewScalar("comment", DataValueTypes.Text, "Sunny day"),
        BdoData.NewScalar("temperature", DataValueTypes.Integer, 25, 26, 26),
        BdoData.NewScalar("date", DataValueTypes.Date, DateTime.Now),
        BdoData.NewNode(
            "subscriber"
            BdoData.NewScalar("name", DataValueTypes.Text, "Ernest E."),
            BdoData.NewScalar("code", DataValueTypes.Integer, 1560))
    )
    .WithTitle("Example of configuration")
    .WithDescription(("en", "This is an example of description"))

System.Scoping

var scope = BdoScoping.NewScope()
    .LoadExtensions(q => q.AddAllAssemblies());
Script

[BdoFunction(
    Name = "testFunction",
    Description = "Returns true if second string parameter is the first one ending with underscore")]
public static object Fun_Func2a(
    this string st1,
    string st2)
{
    return st1 == st2 + "_";
}

...

var exp = "$testFunction('MYTABLE', $text('MYTABLE_'))";
var result = scope.Interpreter.Evaluate<bool?>(exp);
// result is True
Tasks

[BdoTask("taskFake")]
public class TaskFake : BdoTask
{
    [BdoProperty(Name = "boolValue")]
    public bool BoolValue { get; set; }

    [BdoOutput(Name = "stringValue")]
    public string StringValue { get; set; }

    [BdoInput(Name = "enumValue")]
    public ActionPriorities EnumValue { get; set; }

    ...

    public override Task<bool> ExecuteAsync(
        CancellationToken token,
        IBdoScope scope = null,
        IBdoMetaSet varSet = null,
        RuntimeModes runtimeMode = RuntimeModes.Normal,
        IBdoLog log = null)
    {
        ...

        Debug.WriteLine("Task completed");

        return Task.FromResult(true);
    }
}

...

var meta = BdoData.NewObject()
    .WithDataType(BdoExtensionKinds.Task, "bindopen.kernel.tests$taskFake")
    .WithProperties(("boolValue", false))
    .WithInputs(BdoData.NewScalar("enumValue", ActionPriorities.Low))
    .WithOutputs(("stringValue", "test-out"));
                    
var task = scope.CreateTask<TaskFake>(meta);
var cancelToken = new CancellationTokenSource();
task.Execute(cancelToken.Token, scope);

System.IO

Serialization
var metaSet = BdoData.NewSet("test-io").With(("host", "host-test"), ("address", "0.0.0.0"));
metaSet.ToDto().SaveXml("output.xml");
Deserialization
var metaSet = JsonHelper.LoadJson<MetaSetDto>("output.xml").ToPoco();

License

This project is licensed under the terms of the MIT license. See LICENSE.

Packages

This repository contains the code of the following Nuget packages:

Package Provision
BindOpen.Kernel.Abstractions Interfaces and enumerations
BindOpen.Kernel.Data Core data model
BindOpen.Kernel.Scoping Extension manager
BindOpen.Kernel.Scoping.Extensions Classes of extensions
BindOpen.Kernel.Scoping.Script Script interpreter
BindOpen.Kernel.IO Serialization / Deserialization
BindOpen.Kernel.IO Data transfer classes

The atomicity of these packages allows you install only what you need respecting your solution's architecture.

All of our NuGet packages are available from our NuGet.org profile page.

Other repos and Projects

BindOpen.Kernel.Hosting enables you to integrate a BindOpen agent within the .NET service builder.

BindOpen.Kernel.Logging provides a simple and multidimensional logging system, perfect to monitor nested task executions.

BindOpen.Labs is a collection of projects based on BindOpen.Kernel.

A full list of all the repos is available as well.

Documentation and Further Learning

BindOpen Docs

The BindOpen Docs are the ideal place to start if you are new to BindOpen. They are categorized in 3 broader topics:

  • Articles to learn how to use BindOpen;
  • Notes to follow our releases;
  • Api to have an overview of BindOpen APIs.

BindOpen Blog

The BindOpen Blog is where we announce new features, write engineering blog posts, demonstrate proof-of-concepts and features under development.

Feedback

If you're having trouble with BindOpen, file a bug on the BindOpen Issue Tracker.

Donation

You are welcome to support this project. All donations are optional but are greatly appreciated.

Please donate

Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  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. 
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