Skip to content

Repository files navigation

Juno Dotnet

This is a library that provides you with helper methods for interfacing with the microservices framework, juno.

How to use:

There is a lot of flexibility provided by the library, in terms of connection options and encoding protocol options. However, in order to use the library, none of that is required.

In case you are planning to implement a custom connection option, you will find an example in src/Connection/UnixSocketConnection.cs.

For all other basic needs, you can get away without worrying about any of that.

A piece of code is worth a thousand words

usingSystem;usingJunoSDK;usingJunoSDK.Models;usingSystem.Threading.Tasks;usingSystem.Collections.Generic;publicclassProgram{publicstaticasyncTaskMain(string[]args){varmodule=JunoModule.FromUnixSocket("./path/to/juno.sock");awaitmodule.Initialize("module-name","1.0.0");Console.WriteLine("Initialized!");awaitmodule.DeclareFunction("print_hello",async(args)=>{Console.WriteLine("Hello");returnMessageItem.Empty;});awaitmodule.CallFunction("module2.print_hello_world",newDictionary<string,MessageItem>());while(true){awaitTask.Delay(1000);}}}

About

.NET bindings to the Juno project (https://github.com/bytesonus/juno)

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages